Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8015709

Update the SecureRandom run tests to the tolerances specified in FIPS 140-2 Change Notice 2.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 7u25
    • security-libs

      Look at:

      http://csrc.nist.gov/publications/fips/fips140-2/fips1402.pdf

      and then compare to the values on page 62.

       closed/sun/security/provider/SecureRandom/Fips.java

      Performing the Runs Test...
      Length Zero One Range
      1 2546 2531 2343 - 2657
      2 1278 1225 1135 - 1365
      3 646 610 542 - 708
      4 248 319 251 - 373
      5 162 173 111 - 201
      Test failed.

      Also, this test (and the SeedGenerator equivalent) should be updated to test all of the SecureRandom implementations. Right now, only the System default is tested. (e.g. new SecureRandom())

            rsingh Rahul Singh (Inactive)
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: