Home
last modified time | relevance | path

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

/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DInsecureSHA1PRNGKeyDerivator.java94 private static final int EXTRAFRAME_OFFSET = 5; field in InsecureSHA1PRNGKeyDerivator
202 seed = new int[HASH_OFFSET + EXTRAFRAME_OFFSET]; in InsecureSHA1PRNGKeyDerivator()
210 copies = new int[2 * FRAME_LENGTH + EXTRAFRAME_OFFSET]; in InsecureSHA1PRNGKeyDerivator()
253 EXTRAFRAME_OFFSET); in setSeed()
306 EXTRAFRAME_OFFSET); in nextBytes()
333 copies[EXTRAFRAME_OFFSET + 14] = (int) (bits >>> 32); in nextBytes()
334 copies[EXTRAFRAME_OFFSET + 15] = (int) (bits & 0xFFFFFFFF); in nextBytes()
376 copies[EXTRAFRAME_OFFSET] = seed[FRAME_LENGTH]; in nextBytes()
377 copies[EXTRAFRAME_OFFSET + 1] = seed[FRAME_LENGTH + 1]; in nextBytes()
385 System.arraycopy(copies, EXTRAFRAME_OFFSET, seed, 0, in nextBytes()
[all …]