• Home
  • Raw
  • Download

Lines Matching refs:InternalState

41   InternalState.State[0] = SEED_0;  in init()
42 InternalState.State[1] = SEED_1; in init()
43 InternalState.State[2] = SEED_2; in init()
44 InternalState.State[3] = SEED_3; in init()
45 InternalState.State[4] = SEED_4; in init()
46 InternalState.ByteCount = 0; in init()
47 InternalState.BufferOffset = 0; in init()
58 a = InternalState.State[0]; in hashBlock()
59 b = InternalState.State[1]; in hashBlock()
60 c = InternalState.State[2]; in hashBlock()
61 d = InternalState.State[3]; in hashBlock()
62 e = InternalState.State[4]; in hashBlock()
65 t = InternalState.Buffer[(i + 13) & 15] ^ in hashBlock()
66 InternalState.Buffer[(i + 8) & 15] ^ in hashBlock()
67 InternalState.Buffer[(i + 2) & 15] ^ InternalState.Buffer[i & 15]; in hashBlock()
68 InternalState.Buffer[i & 15] = rol32(t, 1); in hashBlock()
79 t += rol32(a, 5) + e + InternalState.Buffer[i & 15]; in hashBlock()
86 InternalState.State[0] += a; in hashBlock()
87 InternalState.State[1] += b; in hashBlock()
88 InternalState.State[2] += c; in hashBlock()
89 InternalState.State[3] += d; in hashBlock()
90 InternalState.State[4] += e; in hashBlock()
94 uint8_t *const b = (uint8_t *)InternalState.Buffer; in addUncounted()
96 b[InternalState.BufferOffset] = data; in addUncounted()
98 b[InternalState.BufferOffset ^ 3] = data; in addUncounted()
100 InternalState.BufferOffset++; in addUncounted()
101 if (InternalState.BufferOffset == BLOCK_LENGTH) { in addUncounted()
103 InternalState.BufferOffset = 0; in addUncounted()
108 ++InternalState.ByteCount; in writebyte()
122 while (InternalState.BufferOffset != 56) in pad()
129 addUncounted(InternalState.ByteCount >> 29); // Shifting to multiply by 8 in pad()
130 addUncounted(InternalState.ByteCount >> in pad()
132 addUncounted(InternalState.ByteCount >> 13); // byte. in pad()
133 addUncounted(InternalState.ByteCount >> 5); in pad()
134 addUncounted(InternalState.ByteCount << 3); in pad()
144 HashResult[i] = InternalState.State[i]; in final()
149 HashResult[i] = (((InternalState.State[i]) << 24) & 0xff000000) | in final()
150 (((InternalState.State[i]) << 8) & 0x00ff0000) | in final()
151 (((InternalState.State[i]) >> 8) & 0x0000ff00) | in final()
152 (((InternalState.State[i]) >> 24) & 0x000000ff); in final()
161 auto StateToRestore = InternalState; in result()
166 InternalState = StateToRestore; in result()