This commit is contained in:
Him188 2020-02-16 01:19:22 +08:00
parent f0e0ae0323
commit b3c97c1678

View File

@ -47,7 +47,7 @@ actual class ECDH actual constructor(actual val keyPair: ECDHKeyPair) {
if (kotlin.runCatching {
Security.addProvider(BouncyCastleProvider())
generateKeyPair() // try if it is working
}.exceptionOrNull() == null) {
}.isSuccess) {
isECDHAvailable = true
}
}