Commit b3c97c16 authored by Him188's avatar Him188

Simplify

parent f0e0ae03
...@@ -47,7 +47,7 @@ actual class ECDH actual constructor(actual val keyPair: ECDHKeyPair) { ...@@ -47,7 +47,7 @@ actual class ECDH actual constructor(actual val keyPair: ECDHKeyPair) {
if (kotlin.runCatching { if (kotlin.runCatching {
Security.addProvider(BouncyCastleProvider()) Security.addProvider(BouncyCastleProvider())
generateKeyPair() // try if it is working generateKeyPair() // try if it is working
}.exceptionOrNull() == null) { }.isSuccess) {
isECDHAvailable = true isECDHAvailable = true
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment