Hi, I'm trying to calculate an ECDSA signature using the Encryption library. A small sample project is attached.
Apparently I'm able to calculate the signature with the expected format, and also verification passes.
But if I try to validate the calculated signature with OpenSSL or other tools, then the verification fails.
In fact if I use "SHA256withRSA" I also get a signature value that looks good but instead it's wrong.
I have to use ECDSA as well in case the keys use ECC.
I'm inclined to think that the problem is with the Encryption library because I have two alternative tools which generate and verify valid signatures interchangeably, which is not the case with the signatures generated in B4X with the Encryption library.
Perhaps I should not use the Encryption library and use Bouncy Castle with inline Java code.
It would greatly help if someone has an equivalent code which calculates RSA and ECDSA signatures from hash + private key.
Thanks!