Initialize ecKf before static-init for ECDH on Android, #1732

This commit is contained in:
Him188 2021-12-15 21:13:50 +00:00
parent bca536b107
commit a7e0f1b288

View File

@ -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")