Hi bogdanwallee
As I know
- your applet : signature = sign(privateKey, messageDigest)
messageDigest = SHA256(input data) ( because you use ALG_ECDSA_SHA_256, so It must be hash before sign)
- Your nodejs code : signature = sign(privateKey, input data)
hope to help you.
Search found 2 matches
- Wed Feb 05, 2020 5:41 am
- Forum: Algorithm School
- Topic: ECDSA (secp256k1) Signature Verification Fails
- Replies: 2
- Views: 33959
- Tue Dec 19, 2017 5:21 am
- Forum: Algorithm School
- Topic: ECDSA signature
- Replies: 5
- Views: 28337
Re: ECDSA signature
I use ECDSA_SHA256 with sec256p-r1 domain parameter to sign, verify => Verify is OK and then verify again on https://javacardos.com/tools/ecdsa_sign_verify.html with the same private, public, (r,s) But the result is invalid. I don't know why. I use Java 3.0.5 My applet as follow : /** * */ package E...