signPreComputedHash on JC30M48CR
Posted: Tue Jun 13, 2017 9:19 am
Hi
I am trying to do ECC signatures on pre computed data using the signPreComputedHash() function. The applet I am using is working just fine on A22CR, but the verification of the signature data I get from JC30M48CR card fails. I am using prime256v1 curve and SHA256 hash for EC parameters and hashing. If I do the hashing on-card using Signature.sign() function, then the applet produces valid/verifiable signature on both (A22CR and JC30M48CR) cards. It's only when I sign the pre generated hash value I get the signature (from JC30M48CR card) that fails verification (verification done by openssl on the PC). A22CR returns the correct signature. Has anybody succeeded in using signPreComputedHash() function on JC30M48CR card?
Regards
Luka
I am trying to do ECC signatures on pre computed data using the signPreComputedHash() function. The applet I am using is working just fine on A22CR, but the verification of the signature data I get from JC30M48CR card fails. I am using prime256v1 curve and SHA256 hash for EC parameters and hashing. If I do the hashing on-card using Signature.sign() function, then the applet produces valid/verifiable signature on both (A22CR and JC30M48CR) cards. It's only when I sign the pre generated hash value I get the signature (from JC30M48CR card) that fails verification (verification done by openssl on the PC). A22CR returns the correct signature. Has anybody succeeded in using signPreComputedHash() function on JC30M48CR card?
Regards
Luka