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

gnu.andrew at redhat.com gnu.andrew at redhat.com
Wed Sep 4 18:27:53 UTC 2019


Changeset: 6d60b8cf1bd4
Author:    mbalao
Date:      2019-09-04 19:08 +0100
URL:       https://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/6d60b8cf1bd4

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: shade, andrew

! src/share/classes/sun/security/ec/ECDSASignature.java
! src/share/native/sun/security/ec/impl/ec.c
+ test/lib/testlibrary/jdk/testlibrary/Convert.java
+ test/sun/security/ec/SignatureDigestTruncate.java



More information about the jdk8u-dev-changes mailing list