Home
last modified time | relevance | path

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

/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DInsecureSHA1PRNGKeyDerivator.java42 derivator.nextBytes(key); in deriveInsecureKey()
124 private transient byte[] nextBytes; field in InsecureSHA1PRNGKeyDerivator
211 nextBytes = new byte[DIGEST_LENGTH]; in InsecureSHA1PRNGKeyDerivator()
278 protected synchronized void nextBytes(byte[] bytes) { in nextBytes() method in InsecureSHA1PRNGKeyDerivator
352 System.arraycopy(nextBytes, nextBIndex, bytes, nextByteToReturn, n); in nextBytes()
396 nextBytes[j] = (byte) (k >>> 24); // getting first byte from left in nextBytes()
397 nextBytes[j + 1] = (byte) (k >>> 16); // getting second byte from left in nextBytes()
398 nextBytes[j + 2] = (byte) (k >>> 8); // getting third byte from left in nextBytes()
399 nextBytes[j + 3] = (byte) (k); // getting fourth byte from left in nextBytes()
408 System.arraycopy(nextBytes, 0, bytes, nextByteToReturn, j); in nextBytes()
DBrokenKeyDerivationActivity.java246 sr.nextBytes(bytes); in readFromFileOrCreateRandom()
/development/samples/Vault/src/com/example/android/vault/
DEncryptedDocument.java317 mRandom.nextBytes(section.iv); in writeSection()
DVaultProvider.java176 new SecureRandom().nextBytes(raw); in loadOrGenerateKeys()