Closed ngallazzi closed 1 month ago
Hey!
Androids default JDK Provider as well as BouncyCastle doesn't support ECDSA.SignatureFormat.RAW
out of the box, which is a default for SignatureGenerator
(most probably this default
should be dropped, defaults
are hard in cryptography).
May be it's possible for you to use ECDSA.SignatureFormat.DER
format for signature?
I was planning to support both signature formats consistently over all formats in the following release.
@whyoleg Yep, I guess It's feasible for me, thank you!
0.4.0 was just released! Both ECDSA signature formats are supported by all providers
Project: Compose Multiplatform Library version: 0.3.1 agp = "8.2.0" kotlin = "1.9.21"
key:
"-----BEGIN PRIVATE KEY-----\n" + "My key payload" "-----END PRIVATE KEY-----"
Exception caused by: java.security.NoSuchAlgorithmException: SHA256withECDSAinP1363Format Signature not available