JavaCard Applet Development Related Questions and Answers.
Hello everyone, when I use the bouncycastle encryption library, I get a question about ECDH. With ECDH, the length of the value is 32 bytes and the length of the javacard is 20 bytes. What happened? Does anyone know why?
According the API specification of jc304 or above, the result will be hash with SHA1.
public static final byte ALG_EC_SVDP_DH
Elliptic curve secret value derivation primitive, Diffie-Hellman version, as per [IEEE P1363].
This algorithm computes the SHA-1 message digest of the output of the derivation primitive to yield a 20 byte result.
Constant Field Values
Users browsing this forum: No registered users and 2 guests