/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/ |
D | OldSHA1PRNGSecureRandomTest.java | 109 sr.nextBytes(null); in testNextBytesbyteArray01() 139 sr.nextBytes(myBytes1); in testNextBytesbyteArray02() 140 sr2.nextBytes(myBytes2); in testNextBytesbyteArray02() 159 sr.nextBytes(bytes1[k]); in testNextBytesbyteArray02() 162 sr2.nextBytes(bytes2[k]); in testNextBytesbyteArray02() 200 sr1.nextBytes(myBytes1); in testNextBytesbyteArray03() 201 sr2.nextBytes(myBytes2); in testNextBytesbyteArray03() 207 sr1.nextBytes(myBytes1); in testNextBytesbyteArray03() 208 sr2.nextBytes(myBytes2); in testNextBytesbyteArray03() 251 sr1.nextBytes(new byte[0]); in testNextBytesbyteArray04() [all …]
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | DrbgParametersTest.java | 47 DrbgParameters.NextBytes nextBytes = in testNextBytes_withValidValues() local 48 DrbgParameters.nextBytes(1234567890, true, additionalInput); in testNextBytes_withValidValues() 49 assertEquals(1234567890, nextBytes.getStrength()); in testNextBytes_withValidValues() 50 assertTrue(nextBytes.getPredictionResistance()); in testNextBytes_withValidValues() 51 assertArrayEquals(additionalInput, nextBytes.getAdditionalInput()); in testNextBytes_withValidValues() 57 DrbgParameters.nextBytes(-2, true, null)); in testNextBytes_withNegativeStrength() 62 DrbgParameters.NextBytes nextBytes = in testNextBytes_withNullAdditionalInput() local 63 DrbgParameters.nextBytes(1234567890, true, null); in testNextBytes_withNullAdditionalInput() 64 assertEquals(null, nextBytes.getAdditionalInput()); in testNextBytes_withNullAdditionalInput()
|
D | SecureRandomTest.java | 77 sr.nextBytes(out1); in test_SecureRandom() 78 sr.nextBytes(out2); in test_SecureRandom() 86 sr.nextBytes(out1); in test_SecureRandom() 87 sr.nextBytes(out2); in test_SecureRandom() 91 sr.nextBytes(out1); in test_SecureRandom() 92 sr.nextBytes(out2); in test_SecureRandom()
|
/libcore/ojluni/src/test/java/util/UUID/ |
D | UUIDTest.java | 83 byteSource.nextBytes(someBytes); in nameUUIDFromBytesTest() 132 byteSource.nextBytes(someBytes); in versionTest() 168 byteSource.nextBytes(someBytes); in variantTest()
|
/libcore/ojluni/annotations/flagged_api/java/security/ |
D | SecureRandom.annotated.java | 66 public void nextBytes(byte[] bytes) { throw new RuntimeException("Stub!"); } in nextBytes() method in SecureRandom 69 public void nextBytes(byte[] bytes, java.security.SecureRandomParameters params) { throw new Runtim… in nextBytes() method in SecureRandom
|
D | DrbgParameters.annotated.java | 37 public static java.security.DrbgParameters.NextBytes nextBytes(int strength, boolean predictionResi… in nextBytes() method in DrbgParameters
|
/libcore/ojluni/src/main/java/java/security/ |
D | SecureRandom.java | 816 public void nextBytes(byte[] bytes) { in nextBytes() method in SecureRandom 840 public void nextBytes(byte[] bytes, SecureRandomParameters params) { in nextBytes() method in SecureRandom 875 nextBytes(b); in next()
|
D | DrbgParameters.java | 537 public static NextBytes nextBytes(int strength, in nextBytes() method in DrbgParameters
|
/libcore/ojluni/src/main/java/java/util/ |
D | SplittableRandom.java | 327 public void nextBytes(byte[] bytes) { in nextBytes() method in SplittableRandom 328 proxy.nextBytes(bytes); in nextBytes()
|
/libcore/luni/src/test/java/tests/java/security/ |
D | SecureRandomTest.java | 82 sr.nextBytes(b); in testNextBytes() 90 sr.nextBytes(null); in testNextBytes()
|
/libcore/luni/src/test/java/libcore/android/crypto/hpke/ |
D | XdhKeySpecTest.java | 39 random.nextBytes(keyBytes); in setup()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SecureRandom2Test.java | 195 new SecureRandom().nextBytes(bytes); in test_nextBytes$B() 201 new SecureRandom().nextBytes(null); in test_nextBytes$B()
|
/libcore/ojluni/src/test/java/util/Random/ |
D | NextBytes.java | 44 r.nextBytes(actual); in realMain()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | RandomTest.java | 83 r.nextBytes(randomBytes); in test_nextBytes$B() 283 mr.nextBytes(new byte[10]); in test_next()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | GZIPInputStreamTest.java | 91 new Random().nextBytes(data); in testLongMessage() 175 r.nextBytes(bytes); in testMultipleMembersWithCustomBufferSize()
|
D | GZIPOutputStreamTest.java | 47 new Random().nextBytes(data); in testLongMessage()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherPBEThread.java | 49 sr.nextBytes(salt); in crypt()
|
D | CipherSymmetricKeyThread.java | 53 sr.nextBytes(iv); in crypt()
|
/libcore/luni/src/test/java/tests/security/ |
D | SecureRandomTest.java | 70 random.nextBytes(randomData); in getRandomBytes()
|
/libcore/ojluni/src/test/java/io/ByteArrayInputStream/ |
D | ReadAllReadNTransferTo.java | 50 random.nextBytes(buf); in testRead()
|
/libcore/ojluni/src/test/java/io/InputStream/ |
D | ReadAllBytes.java | 83 generator.nextBytes(bytes); in createRandomBytes()
|
/libcore/benchmarks/src/benchmarks/ |
D | ZipFileBenchmark.java | 69 random.nextBytes(writeBuffer); in writeEntries()
|
D | BufferedZipFileBenchmark.java | 48 random.nextBytes(data); in setUp()
|
D | ZipFileReadBenchmark.java | 62 random.nextBytes(writeBuffer); in writeEntries()
|
/libcore/ojluni/src/test/java/io/FileInputStream/ |
D | ReadXBytes.java | 85 RND.nextBytes(bytes); in main()
|