mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-03 16:53:48 +08:00
Initialize ecKf before static-init for ECDH on Android, #1732
This commit is contained in:
parent
bca536b107
commit
a7e0f1b288
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user