mirror of
https://github.com/mamoe/mirai.git
synced 2026-09-03 13:13:00 +08:00
Initialize ecKf before static-init for ECDH on Android, #1732
This commit is contained in:
@@ -67,6 +67,8 @@ internal actual class ECDH actual constructor(actual val keyPair: ECDHKeyPair) {
|
||||
|
||||
init {
|
||||
isECDHAvailable = kotlin.runCatching {
|
||||
ecKf // init
|
||||
|
||||
fun testECDH() {
|
||||
ECDHKeyPairImpl(
|
||||
KeyPairGenerator.getInstance("ECDH")
|
||||
|
||||
Reference in New Issue
Block a user