[Bug 3525] New: [IcedTea7] Fix merge issue in DSAParameterGenerator.java due to 8072452 being applied after 8181048
    bugzilla-daemon at icedtea.classpath.org 
    bugzilla-daemon at icedtea.classpath.org
       
    Wed Feb  7 04:02:48 UTC 2018
    
    
  
https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3525
            Bug ID: 3525
           Summary: [IcedTea7] Fix merge issue in
                    DSAParameterGenerator.java due to 8072452 being
                    applied after 8181048
           Product: IcedTea
           Version: 7-hg
          Hardware: all
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: IcedTea
          Assignee: gnu.andrew at redhat.com
          Reporter: gnu.andrew at redhat.com
                CC: unassigned at icedtea.classpath.org
8181048:
-        int primeCertainty = 80; // for 1024-bit prime P
-        if (valueL == 2048) {
+        int primeCertainty = -1;
+        if (valueL <= 1024) {
+            primeCertainty = 80;
+        } else if (valueL == 2048) {
8072452:
@@ -205,11 +206,13 @@
         int b = (valueL - 1) % outLen;
         byte[] seedBytes = new byte[seedLen/8];
         BigInteger twoSl = TWO.pow(seedLen);
-        int primeCertainty = -1;
+        int primeCertainty = 80; // for 1024-bit prime P
         if (valueL <= 1024) {
             primeCertainty = 80;
         } else if (valueL == 2048) {
             primeCertainty = 112;
+        } else if (valueL == 3072) {
+            primeCertainty = 128;
         }
         if (primeCertainty < 0) {
So primeCertainty is never going to be < 0.
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180207/9dc15d5f/attachment.html>
    
    
More information about the distro-pkg-dev
mailing list