Home
last modified time | relevance | path

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

/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DInsecureSHA1PRNGKeyDerivator.java283 int nextByteToReturn; // index of ready bytes in "bytes" array in nextBytes() local
345 nextByteToReturn = 0; in nextBytes()
348 n = (HASHBYTES_TO_USE - nextBIndex) < (bytes.length - nextByteToReturn) ? HASHBYTES_TO_USE in nextBytes()
350 : bytes.length - nextByteToReturn; in nextBytes()
352 System.arraycopy(nextBytes, nextBIndex, bytes, nextByteToReturn, n); in nextBytes()
354 nextByteToReturn += n; in nextBytes()
357 if (nextByteToReturn >= bytes.length) { in nextBytes()
404 j = HASHBYTES_TO_USE < (bytes.length - nextByteToReturn) ? HASHBYTES_TO_USE in nextBytes()
405 : bytes.length - nextByteToReturn; in nextBytes()
408 System.arraycopy(nextBytes, 0, bytes, nextByteToReturn, j); in nextBytes()
[all …]