mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 20:02:57 +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 {
|
init {
|
||||||
isECDHAvailable = kotlin.runCatching {
|
isECDHAvailable = kotlin.runCatching {
|
||||||
|
ecKf // init
|
||||||
|
|
||||||
fun testECDH() {
|
fun testECDH() {
|
||||||
ECDHKeyPairImpl(
|
ECDHKeyPairImpl(
|
||||||
KeyPairGenerator.getInstance("ECDH")
|
KeyPairGenerator.getInstance("ECDH")
|
||||||
|
Loading…
Reference in New Issue
Block a user