signPreComputedHash() on JC30M48CR
Posted: Tue Jun 13, 2017 9:01 am
Hi,
I am trying to do the ECC signature on precomputed hash values. I have the applet working just fine on the A22CR card, but on the JC30M48CR the function signPreComputedHash() does not return a valid signature - the signature verification (which is done off-card, on the PC) fails. Has anybody succeeded in using signPreComputedHash() on JC30M48CR (possibly using SHA256)? As I have written before, the applet produces the correct signature on A22CR; also both cards produce the correct signature when doing the on-card hash computation and signing using Signature.sign(...). Only when using signPreComputedHash() on JC30M48 I don't get valid signature data. I am using prime256v1 as EC parameters and sha256 for hashing. The signature verification is done using openssl...
Regards
Luka
I am trying to do the ECC signature on precomputed hash values. I have the applet working just fine on the A22CR card, but on the JC30M48CR the function signPreComputedHash() does not return a valid signature - the signature verification (which is done off-card, on the PC) fails. Has anybody succeeded in using signPreComputedHash() on JC30M48CR (possibly using SHA256)? As I have written before, the applet produces the correct signature on A22CR; also both cards produce the correct signature when doing the on-card hash computation and signing using Signature.sign(...). Only when using signPreComputedHash() on JC30M48 I don't get valid signature data. I am using prime256v1 as EC parameters and sha256 for hashing. The signature verification is done using openssl...
Regards
Luka