Blame SOURCES/pr2899.patch

2b939e
# HG changeset patch
2b939e
# User andrew
2b939e
# Date 1459313680 -3600
2b939e
#      Wed Mar 30 05:54:40 2016 +0100
2b939e
# Node ID 9dc0eca5fa8926e6a952fa4f1931e78aa1f52443
2b939e
# Parent  8957aff589013e671f02d38023d5ff245ef27e87
2b939e
PR2899: Don't use WithSeed versions of NSS functions as they don't fully process the seed
2b939e
Contributed-by: Alex Kashchenko <akashche@redhat.com>
545c29
Updated 2017/07/04 to accomodate 8175110 by Andrew Hughes <gnu.andrew@redhat.com>
2b939e
545c29
diff -r e5fdbb82bd49 src/share/native/sun/security/ec/ecc_impl.h
545c29
--- openjdk/jdk/src/share/native/sun/security/ec/ecc_impl.h
545c29
+++ openjdk/jdk/src/share/native/sun/security/ec/ecc_impl.h
2b939e
@@ -267,8 +267,8 @@
2b939e
 
2b939e
 #ifdef SYSTEM_NSS
2b939e
 #define EC_DecodeParams(a,b,c) EC_DecodeParams(a,b)
2b939e
-#define EC_NewKey(a,b,c,d,e) EC_NewKeyFromSeed(a,b,c,d)
545c29
-#define ECDSA_SignDigest(a,b,c,d,e,f,g) ECDSA_SignDigestWithSeed(a,b,c,d,e)
2b939e
+#define EC_NewKey(a,b,c,d,e) EC_NewKey(a,b)
545c29
+#define ECDSA_SignDigest(a,b,c,d,e,f,g) ECDSA_SignDigest(a,b,c)
2b939e
 #define ECDSA_VerifyDigest(a,b,c,d) ECDSA_VerifyDigest(a,b,c)
2b939e
 #define ECDH_Derive(a,b,c,d,e,f) ECDH_Derive(a,b,c,d,e)
2b939e
 #else