/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
SecureRandom_ImplTest.java | 75 sr.nextBytes(new byte[20]); 76 sr.nextBytes(new byte[1]); 80 sr.nextBytes(null); 83 sr.nextBytes(new byte[5]); 108 sr.nextBytes(new byte[100]); 132 new SecureRandom(seed).nextBytes(new byte[20]); 138 new SecureRandom(seed).nextBytes(new byte[20]);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/ |
OldSHA1PRNGSecureRandomTest.java | 100 * test against the "void nextBytes(byte[])" method; it checks out that the 105 sr.nextBytes(null); 106 fail("unexpected: nextBytes(null) :: No NullPointerException"); 112 * test against the "void nextBytes(byte[])" method; it checks out that 114 * the same sequencies of bytes as results of their "nextBytes(byte[])" 135 sr.nextBytes(myBytes1); 136 sr2.nextBytes(myBytes2); 155 sr.nextBytes(bytes1[k]); 158 sr2.nextBytes(bytes2[k]); 173 * test against the "void nextBytes(byte[])" method; it checks out tha [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
RandomGenerator.java | 67 void nextBytes(byte[] bytes);
|
RandomAdaptor.java | 85 public void nextBytes(byte[] bytes) { 86 randomGenerator.nextBytes(bytes);
|
AbstractRandomGenerator.java | 106 public void nextBytes(byte[] bytes) {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
CipherKeyGenerator.java | 34 random.nextBytes(key);
|
/external/jetty/src/java/org/eclipse/jetty/websocket/ |
RandomMaskGen.java | 43 _random.nextBytes(mask);
|
/libcore/luni/src/test/java/libcore/java/security/ |
SecureRandomTest.java | 81 sr.nextBytes(out1); 82 sr.nextBytes(out2); 90 sr.nextBytes(out1); 91 sr.nextBytes(out2); 95 sr.nextBytes(out1); 96 sr.nextBytes(out2);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
DESKeyGenerator.java | 40 random.nextBytes(newKey);
|
DESedeKeyGenerator.java | 51 random.nextBytes(newKey);
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
SHA1PRNG_SecureRandomImpl.java | 76 // to use to form byte array returning by the "nextBytes(byte[])" method 85 // COUNTER_BASE - initial value to set to "counter" before computing "nextBytes(..)"; 136 private transient byte[] nextBytes; 138 // index of used bytes in "nextBytes" array 158 // - upon getting "nextBytes(byte[])" invoked, single or first in row, 179 nextBytes = new byte[DIGEST_LENGTH]; 220 if (state == NEXT_BYTES) { // first setSeed after NextBytes; restoring hash 245 byte[] myBytes; // byte[] for bytes returned by "nextBytes()" 357 System.arraycopy(nextBytes, nextBIndex, bytes, nextByteToReturn, n); 401 nextBytes[j] = (byte) (k >>> 24); // getting first byte from lef [all...] |
/cts/tests/tests/keystore/src/android/keystore/cts/ |
CountingSecureRandom.java | 52 public synchronized void nextBytes(byte[] bytes) { 56 mDelegate.nextBytes(bytes);
|
/external/guava/guava/src/com/google/common/hash/ |
Hashing.java | 369 byte[] nextBytes = hashCode.asBytes(); 370 checkArgument(nextBytes.length == resultBytes.length, 372 for (int i = 0; i < nextBytes.length; i++) { 373 resultBytes[i] = (byte) (resultBytes[i] * 37 ^ nextBytes[i]); 394 byte[] nextBytes = hashCode.asBytes(); 395 checkArgument(nextBytes.length == resultBytes.length, 397 for (int i = 0; i < nextBytes.length; i++) { 398 resultBytes[i] += nextBytes[i];
|
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/ |
InsecureSHA1PRNGKeyDerivator.java | 42 derivator.nextBytes(key); 66 // to use to form byte array returning by the "nextBytes(byte[])" method 75 // COUNTER_BASE - initial value to set to "counter" before computing "nextBytes(..)"; 124 private transient byte[] nextBytes; 126 // index of used bytes in "nextBytes" array 194 // - upon getting "nextBytes(byte[])" invoked, single or first in row, 211 nextBytes = new byte[DIGEST_LENGTH]; 251 if (state == NEXT_BYTES) { // first setSeed after NextBytes; restoring hash 278 protected synchronized void nextBytes(byte[] bytes) { 352 System.arraycopy(nextBytes, nextBIndex, bytes, nextByteToReturn, n) [all...] |
/cts/tests/tests/security/src/android/security/cts/activity/ |
SecureRandomService.java | 52 sr.nextBytes(randomBytes);
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
HashFunctionBenchmark.java | 51 random.nextBytes(testBytes);
|
ChecksumBenchmark.java | 48 new Random(RANDOM_SEED).nextBytes(testBytes);
|
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/ |
Cipher_Impl1Test.java | 60 sr.nextBytes(iv); 90 sr.nextBytes(iv);
|
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/ |
TestEnrollmentActivity.java | 64 mRandom.nextBytes(data); 109 mRandom.nextBytes(data);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
MifareUltralightTagTester.java | 57 random.nextBytes(onePage);
|
/cts/tests/backup/app/src/android/backup/app/ |
MainActivity.java | 67 new Random().nextBytes(bytes);
|
/external/guava/guava-tests/benchmark/com/google/common/primitives/ |
UnsignedBytesBenchmark.java | 49 r.nextBytes(ba1);
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
HuffmanTest.java | 41 random.nextBytes(buf);
|
/frameworks/base/keystore/java/android/security/keystore/ |
KeyStoreCryptoOperationUtils.java | 106 rng.nextBytes(result);
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
GZIPOutputStreamTest.java | 37 new Random().nextBytes(data);
|