hg: jdk/sandbox: 8147502: Digest is incorrectly truncated for ECDSA signatures when the bit length of n is less than the field size

chris.hegarty at oracle.com chris.hegarty at oracle.com
Tue Mar 19 19:30:25 UTC 2019


Changeset: ddfb658c8ce3
Author:    apetcher
Date:      2019-03-19 15:18 -0400
URL:       http://hg.openjdk.java.net/jdk/sandbox/rev/ddfb658c8ce3

8147502: Digest is incorrectly truncated for ECDSA signatures when the bit length of n is less than the field size
Summary: Truncate the digest according to the group order, not the field size
Reviewed-by: jnimeh

! src/jdk.crypto.ec/share/classes/sun/security/ec/ECDSASignature.java
! src/jdk.crypto.ec/share/native/libsunec/impl/ec.c
+ test/jdk/sun/security/ec/SignatureDigestTruncate.java



More information about the jdk-sandbox-changes mailing list