whyoleg / cryptography-kotlin

Kotlin Multiplatform cryptography / crypto library
https://whyoleg.github.io/cryptography-kotlin/
Apache License 2.0
239 stars 10 forks source link

(IOS) - ECDSA not found #34

Open ngallazzi opened 6 days ago

ngallazzi commented 6 days ago
Caused by: dev.whyoleg.cryptography.CryptographyAlgorithmNotFoundException:

Algorithm not found: dev.whyoleg.cryptography.algorithms.asymmetric.ECDSA

androidMain.dependencies {
    implementation("dev.whyoleg.cryptography:cryptography-provider-jdk:0.3.1")
    implementation("org.bouncycastle:bcpkix-jdk15on:1.68")
}

commonMain.dependencies {
     implementation("dev.whyoleg.cryptography:cryptography-core:0.3.1")
 }

 iosMain.dependencies {
    implementation("dev.whyoleg.cryptography:cryptography-provider-apple:0.3.1")
}

provider: dev.whyoleg.cryptography:cryptography-provider-apple:0.3.1

whyoleg commented 6 days ago

Hey! As stated in docs, ECDSA is not yet supported with Apple provider, and for now it can be used only with openssl provider on native. That's mostly because out-of-the-box (without CryptoKit) APIs for ECDSA there are limited and require more work to align it with other providers. In fact, I do want to improve this, though for now I have not a lot of time.