• Home
  • Raw
  • Download

Lines Matching refs:InternalState

86   InternalState.State[0] = SEED_0;  in init()
87 InternalState.State[1] = SEED_1; in init()
88 InternalState.State[2] = SEED_2; in init()
89 InternalState.State[3] = SEED_3; in init()
90 InternalState.State[4] = SEED_4; in init()
91 InternalState.ByteCount = 0; in init()
92 InternalState.BufferOffset = 0; in init()
96 uint32_t A = InternalState.State[0]; in hashBlock()
97 uint32_t B = InternalState.State[1]; in hashBlock()
98 uint32_t C = InternalState.State[2]; in hashBlock()
99 uint32_t D = InternalState.State[3]; in hashBlock()
100 uint32_t E = InternalState.State[4]; in hashBlock()
103 r0(A, B, C, D, E, 0, InternalState.Buffer.L); in hashBlock()
104 r0(E, A, B, C, D, 1, InternalState.Buffer.L); in hashBlock()
105 r0(D, E, A, B, C, 2, InternalState.Buffer.L); in hashBlock()
106 r0(C, D, E, A, B, 3, InternalState.Buffer.L); in hashBlock()
107 r0(B, C, D, E, A, 4, InternalState.Buffer.L); in hashBlock()
108 r0(A, B, C, D, E, 5, InternalState.Buffer.L); in hashBlock()
109 r0(E, A, B, C, D, 6, InternalState.Buffer.L); in hashBlock()
110 r0(D, E, A, B, C, 7, InternalState.Buffer.L); in hashBlock()
111 r0(C, D, E, A, B, 8, InternalState.Buffer.L); in hashBlock()
112 r0(B, C, D, E, A, 9, InternalState.Buffer.L); in hashBlock()
113 r0(A, B, C, D, E, 10, InternalState.Buffer.L); in hashBlock()
114 r0(E, A, B, C, D, 11, InternalState.Buffer.L); in hashBlock()
115 r0(D, E, A, B, C, 12, InternalState.Buffer.L); in hashBlock()
116 r0(C, D, E, A, B, 13, InternalState.Buffer.L); in hashBlock()
117 r0(B, C, D, E, A, 14, InternalState.Buffer.L); in hashBlock()
118 r0(A, B, C, D, E, 15, InternalState.Buffer.L); in hashBlock()
119 r1(E, A, B, C, D, 16, InternalState.Buffer.L); in hashBlock()
120 r1(D, E, A, B, C, 17, InternalState.Buffer.L); in hashBlock()
121 r1(C, D, E, A, B, 18, InternalState.Buffer.L); in hashBlock()
122 r1(B, C, D, E, A, 19, InternalState.Buffer.L); in hashBlock()
124 r2(A, B, C, D, E, 20, InternalState.Buffer.L); in hashBlock()
125 r2(E, A, B, C, D, 21, InternalState.Buffer.L); in hashBlock()
126 r2(D, E, A, B, C, 22, InternalState.Buffer.L); in hashBlock()
127 r2(C, D, E, A, B, 23, InternalState.Buffer.L); in hashBlock()
128 r2(B, C, D, E, A, 24, InternalState.Buffer.L); in hashBlock()
129 r2(A, B, C, D, E, 25, InternalState.Buffer.L); in hashBlock()
130 r2(E, A, B, C, D, 26, InternalState.Buffer.L); in hashBlock()
131 r2(D, E, A, B, C, 27, InternalState.Buffer.L); in hashBlock()
132 r2(C, D, E, A, B, 28, InternalState.Buffer.L); in hashBlock()
133 r2(B, C, D, E, A, 29, InternalState.Buffer.L); in hashBlock()
134 r2(A, B, C, D, E, 30, InternalState.Buffer.L); in hashBlock()
135 r2(E, A, B, C, D, 31, InternalState.Buffer.L); in hashBlock()
136 r2(D, E, A, B, C, 32, InternalState.Buffer.L); in hashBlock()
137 r2(C, D, E, A, B, 33, InternalState.Buffer.L); in hashBlock()
138 r2(B, C, D, E, A, 34, InternalState.Buffer.L); in hashBlock()
139 r2(A, B, C, D, E, 35, InternalState.Buffer.L); in hashBlock()
140 r2(E, A, B, C, D, 36, InternalState.Buffer.L); in hashBlock()
141 r2(D, E, A, B, C, 37, InternalState.Buffer.L); in hashBlock()
142 r2(C, D, E, A, B, 38, InternalState.Buffer.L); in hashBlock()
143 r2(B, C, D, E, A, 39, InternalState.Buffer.L); in hashBlock()
145 r3(A, B, C, D, E, 40, InternalState.Buffer.L); in hashBlock()
146 r3(E, A, B, C, D, 41, InternalState.Buffer.L); in hashBlock()
147 r3(D, E, A, B, C, 42, InternalState.Buffer.L); in hashBlock()
148 r3(C, D, E, A, B, 43, InternalState.Buffer.L); in hashBlock()
149 r3(B, C, D, E, A, 44, InternalState.Buffer.L); in hashBlock()
150 r3(A, B, C, D, E, 45, InternalState.Buffer.L); in hashBlock()
151 r3(E, A, B, C, D, 46, InternalState.Buffer.L); in hashBlock()
152 r3(D, E, A, B, C, 47, InternalState.Buffer.L); in hashBlock()
153 r3(C, D, E, A, B, 48, InternalState.Buffer.L); in hashBlock()
154 r3(B, C, D, E, A, 49, InternalState.Buffer.L); in hashBlock()
155 r3(A, B, C, D, E, 50, InternalState.Buffer.L); in hashBlock()
156 r3(E, A, B, C, D, 51, InternalState.Buffer.L); in hashBlock()
157 r3(D, E, A, B, C, 52, InternalState.Buffer.L); in hashBlock()
158 r3(C, D, E, A, B, 53, InternalState.Buffer.L); in hashBlock()
159 r3(B, C, D, E, A, 54, InternalState.Buffer.L); in hashBlock()
160 r3(A, B, C, D, E, 55, InternalState.Buffer.L); in hashBlock()
161 r3(E, A, B, C, D, 56, InternalState.Buffer.L); in hashBlock()
162 r3(D, E, A, B, C, 57, InternalState.Buffer.L); in hashBlock()
163 r3(C, D, E, A, B, 58, InternalState.Buffer.L); in hashBlock()
164 r3(B, C, D, E, A, 59, InternalState.Buffer.L); in hashBlock()
166 r4(A, B, C, D, E, 60, InternalState.Buffer.L); in hashBlock()
167 r4(E, A, B, C, D, 61, InternalState.Buffer.L); in hashBlock()
168 r4(D, E, A, B, C, 62, InternalState.Buffer.L); in hashBlock()
169 r4(C, D, E, A, B, 63, InternalState.Buffer.L); in hashBlock()
170 r4(B, C, D, E, A, 64, InternalState.Buffer.L); in hashBlock()
171 r4(A, B, C, D, E, 65, InternalState.Buffer.L); in hashBlock()
172 r4(E, A, B, C, D, 66, InternalState.Buffer.L); in hashBlock()
173 r4(D, E, A, B, C, 67, InternalState.Buffer.L); in hashBlock()
174 r4(C, D, E, A, B, 68, InternalState.Buffer.L); in hashBlock()
175 r4(B, C, D, E, A, 69, InternalState.Buffer.L); in hashBlock()
176 r4(A, B, C, D, E, 70, InternalState.Buffer.L); in hashBlock()
177 r4(E, A, B, C, D, 71, InternalState.Buffer.L); in hashBlock()
178 r4(D, E, A, B, C, 72, InternalState.Buffer.L); in hashBlock()
179 r4(C, D, E, A, B, 73, InternalState.Buffer.L); in hashBlock()
180 r4(B, C, D, E, A, 74, InternalState.Buffer.L); in hashBlock()
181 r4(A, B, C, D, E, 75, InternalState.Buffer.L); in hashBlock()
182 r4(E, A, B, C, D, 76, InternalState.Buffer.L); in hashBlock()
183 r4(D, E, A, B, C, 77, InternalState.Buffer.L); in hashBlock()
184 r4(C, D, E, A, B, 78, InternalState.Buffer.L); in hashBlock()
185 r4(B, C, D, E, A, 79, InternalState.Buffer.L); in hashBlock()
187 InternalState.State[0] += A; in hashBlock()
188 InternalState.State[1] += B; in hashBlock()
189 InternalState.State[2] += C; in hashBlock()
190 InternalState.State[3] += D; in hashBlock()
191 InternalState.State[4] += E; in hashBlock()
196 InternalState.Buffer.C[InternalState.BufferOffset] = Data; in addUncounted()
198 InternalState.Buffer.C[InternalState.BufferOffset ^ 3] = Data; in addUncounted()
201 InternalState.BufferOffset++; in addUncounted()
202 if (InternalState.BufferOffset == BLOCK_LENGTH) { in addUncounted()
204 InternalState.BufferOffset = 0; in addUncounted()
209 ++InternalState.ByteCount; in writebyte()
214 InternalState.ByteCount += Data.size(); in update()
217 if (InternalState.BufferOffset > 0) { in update()
219 Data.size(), BLOCK_LENGTH - InternalState.BufferOffset); in update()
227 assert(InternalState.BufferOffset == 0); in update()
231 InternalState.Buffer.L[I] = support::endian::read32be(&Data[I * 4]); in update()
251 while (InternalState.BufferOffset != 56) in pad()
258 addUncounted(InternalState.ByteCount >> 29); // Shifting to multiply by 8 in pad()
259 addUncounted(InternalState.ByteCount >> in pad()
261 addUncounted(InternalState.ByteCount >> 13); // byte. in pad()
262 addUncounted(InternalState.ByteCount >> 5); in pad()
263 addUncounted(InternalState.ByteCount << 3); in pad()
273 HashResult[i] = InternalState.State[i]; in final()
278 HashResult[i] = (((InternalState.State[i]) << 24) & 0xff000000) | in final()
279 (((InternalState.State[i]) << 8) & 0x00ff0000) | in final()
280 (((InternalState.State[i]) >> 8) & 0x0000ff00) | in final()
281 (((InternalState.State[i]) >> 24) & 0x000000ff); in final()
290 auto StateToRestore = InternalState; in result()
295 InternalState = StateToRestore; in result()