Home
last modified time | relevance | path

Searched refs:nextBytes (Results 1 – 25 of 55) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/
DOldSHA1PRNGSecureRandomTest.java109 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/
DDrbgParametersTest.java47 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()
DSecureRandomTest.java77 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/
DUUIDTest.java83 byteSource.nextBytes(someBytes); in nameUUIDFromBytesTest()
132 byteSource.nextBytes(someBytes); in versionTest()
168 byteSource.nextBytes(someBytes); in variantTest()
/libcore/ojluni/annotations/flagged_api/java/security/
DSecureRandom.annotated.java66 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
DDrbgParameters.annotated.java37 public static java.security.DrbgParameters.NextBytes nextBytes(int strength, boolean predictionResi… in nextBytes() method in DrbgParameters
/libcore/ojluni/src/main/java/java/security/
DSecureRandom.java816 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()
DDrbgParameters.java537 public static NextBytes nextBytes(int strength, in nextBytes() method in DrbgParameters
/libcore/ojluni/src/main/java/java/util/
DSplittableRandom.java327 public void nextBytes(byte[] bytes) { in nextBytes() method in SplittableRandom
328 proxy.nextBytes(bytes); in nextBytes()
/libcore/luni/src/test/java/tests/java/security/
DSecureRandomTest.java82 sr.nextBytes(b); in testNextBytes()
90 sr.nextBytes(null); in testNextBytes()
/libcore/luni/src/test/java/libcore/android/crypto/hpke/
DXdhKeySpecTest.java39 random.nextBytes(keyBytes); in setup()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecureRandom2Test.java195 new SecureRandom().nextBytes(bytes); in test_nextBytes$B()
201 new SecureRandom().nextBytes(null); in test_nextBytes$B()
/libcore/ojluni/src/test/java/util/Random/
DNextBytes.java44 r.nextBytes(actual); in realMain()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRandomTest.java83 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/
DGZIPInputStreamTest.java91 new Random().nextBytes(data); in testLongMessage()
175 r.nextBytes(bytes); in testMultipleMembersWithCustomBufferSize()
DGZIPOutputStreamTest.java47 new Random().nextBytes(data); in testLongMessage()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherPBEThread.java49 sr.nextBytes(salt); in crypt()
DCipherSymmetricKeyThread.java53 sr.nextBytes(iv); in crypt()
/libcore/luni/src/test/java/tests/security/
DSecureRandomTest.java70 random.nextBytes(randomData); in getRandomBytes()
/libcore/ojluni/src/test/java/io/ByteArrayInputStream/
DReadAllReadNTransferTo.java50 random.nextBytes(buf); in testRead()
/libcore/ojluni/src/test/java/io/InputStream/
DReadAllBytes.java83 generator.nextBytes(bytes); in createRandomBytes()
/libcore/benchmarks/src/benchmarks/
DZipFileBenchmark.java69 random.nextBytes(writeBuffer); in writeEntries()
DBufferedZipFileBenchmark.java48 random.nextBytes(data); in setUp()
DZipFileReadBenchmark.java62 random.nextBytes(writeBuffer); in writeEntries()
/libcore/ojluni/src/test/java/io/FileInputStream/
DReadXBytes.java85 RND.nextBytes(bytes); in main()

123