Home
last modified time | relevance | path

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

123

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DSecureRandom_ImplTest.java75 sr.nextBytes(new byte[20]); in testNextBytes()
76 sr.nextBytes(new byte[1]); in testNextBytes()
80 sr.nextBytes(null); in testNextBytes()
83 sr.nextBytes(new byte[5]); in testNextBytes()
108 sr.nextBytes(new byte[100]); in testGetAlgorithm()
132 new SecureRandom(seed).nextBytes(new byte[20]); in testGetSeed()
138 new SecureRandom(seed).nextBytes(new byte[20]); in testGenerateSeed()
/external/guava/guava/src/com/google/common/hash/
DHashing.java369 byte[] nextBytes = hashCode.asBytes(); in combineOrdered()
370 checkArgument(nextBytes.length == resultBytes.length, in combineOrdered()
372 for (int i = 0; i < nextBytes.length; i++) { in combineOrdered()
373 resultBytes[i] = (byte) (resultBytes[i] * 37 ^ nextBytes[i]); in combineOrdered()
394 byte[] nextBytes = hashCode.asBytes(); in combineUnordered()
395 checkArgument(nextBytes.length == resultBytes.length, in combineUnordered()
397 for (int i = 0; i < nextBytes.length; i++) { in combineUnordered()
398 resultBytes[i] += nextBytes[i]; in combineUnordered()
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
DWebSocketWriterTest.java123 random.nextBytes(maskKey); in clientSendBinary()
148 random.nextBytes(maskKey1); in clientStreamBinary()
150 random.nextBytes(maskKey2); in clientStreamBinary()
152 random.nextBytes(maskKey3); in clientStreamBinary()
328 new Random(0).nextBytes(junk); in binaryData()
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DRandomAdaptor.java85 public void nextBytes(byte[] bytes) { in nextBytes() method in RandomAdaptor
86 randomGenerator.nextBytes(bytes); in nextBytes()
DRandomGenerator.java67 void nextBytes(byte[] bytes); in nextBytes() method
DAbstractRandomGenerator.java106 public void nextBytes(byte[] bytes) { in nextBytes() method in AbstractRandomGenerator
DBitsStreamGenerator.java65 public void nextBytes(byte[] bytes) { in nextBytes() method in BitsStreamGenerator
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipher_Impl1Test.java60 sr.nextBytes(iv); in test_getIV()
90 sr.nextBytes(iv); in test_getParameters()
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
DWebSocketWriter.java137 random.nextBytes(maskKey); in writeControlFrame()
211 random.nextBytes(maskKey); in writeFrame()
281 random.nextBytes(maskKey); in close()
/external/jetty/src/java/org/eclipse/jetty/websocket/
DRandomMaskGen.java43 _random.nextBytes(mask); in genMask()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DCipherKeyGenerator.java34 random.nextBytes(key); in generateKey()
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DGlRectDrawerTest.java106 random.nextBytes(rgbPlane.array()); in testRgbRendering()
145 random.nextBytes(yuvPlanes[i].array()); in testYuvRendering()
281 random.nextBytes(rgbPlane.array());
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DDESKeyGenerator.java40 random.nextBytes(newKey); in generateKey()
DDESedeKeyGenerator.java51 random.nextBytes(newKey); in generateKey()
DDSAParametersGenerator.java142 random.nextBytes(seed); in generateParameters_FIPS186_2()
252 random.nextBytes(seed); in generateParameters_FIPS186_3()
/external/guava/guava-tests/benchmark/com/google/common/hash/
DHashFunctionBenchmark.java51 random.nextBytes(testBytes); in setUp()
DChecksumBenchmark.java48 new Random(RANDOM_SEED).nextBytes(testBytes); in setUp()
DMessageDigestAlgorithmBenchmark.java94 new Random(RANDOM_SEED).nextBytes(testBytes); in setUp()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/
DPKCS1Encoding.java222 random.nextBytes(block); // random fill in encodeBlock()
315 this.random.nextBytes(random); in decodeBlockOrRandom()
/external/guava/guava-tests/test/com/google/common/hash/
DHashTestUtils.java158 random.nextBytes(value); in PUT_BYTES()
167 random.nextBytes(value); in PUT_BYTES_INT_INT()
492 random.nextBytes(bytes); in assertHashBytesEquivalence()
538 random.nextBytes(bytes); in assertHashStringEquivalence()
DAbstractByteHasherTest.java71 random.nextBytes(bytes); in testString()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHuffmanTest.java41 random.nextBytes(buf); in roundTripForRequestAndResponse()
/external/guava/guava-tests/benchmark/com/google/common/primitives/
DUnsignedBytesBenchmark.java49 r.nextBytes(ba1); in setUp()
/external/apache-harmony/security/src/test/api/java.injected/java/security/
DSecureRandomTest.java76 sr.nextBytes(b); in testNextBytes()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DSecureRandom2Test.java115 new SecureRandom().nextBytes(bytes); in test_nextBytes$B()

123