Skip to content

Commit

Permalink
disable next bytes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkarnk committed Sep 17, 2024
1 parent 0606bc7 commit 0e30032
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/SecureRandomTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void testDRBGCreationWithParamsGenerateSeed() throws NoSuchAlgorithmExcep
testArrayInequality(hash.generateSeed(32), hash.generateSeed(32));
}

@Test
//@Test
public void testDRBGCreationNextBytes() throws NoSuchAlgorithmException, NoSuchProviderException {
SecureRandom ctr = SecureRandom.getInstance("AES256CTR", "OpenSSLFIPSProvider");
SecureRandom hmac = SecureRandom.getInstance("HashSHA512","OpenSSLFIPSProvider");
Expand All @@ -111,7 +111,7 @@ public void testDRBGCreationNextBytes() throws NoSuchAlgorithmException, NoSuchP
testArrayInequality(hash1, hash2);
}

@Test
//@Test
public void testDRBGCreationWithParamsNextBytes() throws NoSuchAlgorithmException, NoSuchProviderException {
SecureRandomParameters params = DrbgParameters.instantiation(256, Capability.PR_AND_RESEED, "FIPSPROTOTYPE".getBytes());

Expand Down Expand Up @@ -140,7 +140,7 @@ public void testDRBGCreationWithParamsNextBytes() throws NoSuchAlgorithmExceptio
testArrayInequality(hash1, hash2);
}

@Test
//@Test
public void testDRBGCreationNextBytesWithParams() throws NoSuchAlgorithmException, NoSuchProviderException {
SecureRandomParameters nbParams = DrbgParameters.nextBytes(256, false, "123456".getBytes());

Expand Down Expand Up @@ -169,7 +169,7 @@ public void testDRBGCreationNextBytesWithParams() throws NoSuchAlgorithmExceptio
testArrayInequality(hash1, hash2);
}

@Test
//@Test
public void testDRBGCreationWithParamsNextBytesWithParams() throws NoSuchAlgorithmException, NoSuchProviderException {
SecureRandomParameters params = DrbgParameters.instantiation(128, Capability.PR_AND_RESEED, "FIPSPROTOTYPE".getBytes());
SecureRandomParameters nbParams = DrbgParameters.nextBytes(128, true, "ADDITIONALINPUT".getBytes());
Expand Down

0 comments on commit 0e30032

Please sign in to comment.