Lines Matching refs:state
39 uint32_t state[8]; ///< current hash value
41 void (*transform)(uint32_t *state, const uint8_t buffer[64]);
65 static void sha1_transform(uint32_t state[5], const uint8_t buffer[64])
70 a = state[0];
71 b = state[1];
72 c = state[2];
73 d = state[3];
74 e = state[4];
150 state[0] += a;
151 state[1] += b;
152 state[2] += c;
153 state[3] += d;
154 state[4] += e;
203 static void sha256_transform(uint32_t *state, const uint8_t buffer[64])
209 a = state[0];
210 b = state[1];
211 c = state[2];
212 d = state[3];
213 e = state[4];
214 f = state[5];
215 g = state[6];
216 h = state[7];
263 state[0] += a;
264 state[1] += b;
265 state[2] += c;
266 state[3] += d;
267 state[4] += e;
268 state[5] += f;
269 state[6] += g;
270 state[7] += h;
279 ctx->state[0] = 0x67452301;
280 ctx->state[1] = 0xEFCDAB89;
281 ctx->state[2] = 0x98BADCFE;
282 ctx->state[3] = 0x10325476;
283 ctx->state[4] = 0xC3D2E1F0;
287 ctx->state[0] = 0xC1059ED8;
288 ctx->state[1] = 0x367CD507;
289 ctx->state[2] = 0x3070DD17;
290 ctx->state[3] = 0xF70E5939;
291 ctx->state[4] = 0xFFC00B31;
292 ctx->state[5] = 0x68581511;
293 ctx->state[6] = 0x64F98FA7;
294 ctx->state[7] = 0xBEFA4FA4;
298 ctx->state[0] = 0x6A09E667;
299 ctx->state[1] = 0xBB67AE85;
300 ctx->state[2] = 0x3C6EF372;
301 ctx->state[3] = 0xA54FF53A;
302 ctx->state[4] = 0x510E527F;
303 ctx->state[5] = 0x9B05688C;
304 ctx->state[6] = 0x1F83D9AB;
305 ctx->state[7] = 0x5BE0CD19;
326 ctx->transform(ctx->state, ctx->buffer);
334 ctx->transform(ctx->state, ctx->buffer);
340 ctx->transform(ctx->state, data);
357 AV_WB32(digest + i*4, ctx->state[i]);