Lines Matching defs:state
38 uint32_t state[8]; ///< current hash value
40 void (*transform)(uint32_t *state, const uint8_t buffer[64]);
64 static void sha1_transform(uint32_t state[5], const uint8_t buffer[64])
69 a = state[0];
70 b = state[1];
71 c = state[2];
72 d = state[3];
73 e = state[4];
149 state[0] += a;
150 state[1] += b;
151 state[2] += c;
152 state[3] += d;
153 state[4] += e;
202 static void sha256_transform(uint32_t *state, const uint8_t buffer[64])
208 a = state[0];
209 b = state[1];
210 c = state[2];
211 d = state[3];
212 e = state[4];
213 f = state[5];
214 g = state[6];
215 h = state[7];
262 state[0] += a;
263 state[1] += b;
264 state[2] += c;
265 state[3] += d;
266 state[4] += e;
267 state[5] += f;
268 state[6] += g;
269 state[7] += h;
278 ctx->state[0] = 0x67452301;
279 ctx->state[1] = 0xEFCDAB89;
280 ctx->state[2] = 0x98BADCFE;
281 ctx->state[3] = 0x10325476;
282 ctx->state[4] = 0xC3D2E1F0;
286 ctx->state[0] = 0xC1059ED8;
287 ctx->state[1] = 0x367CD507;
288 ctx->state[2] = 0x3070DD17;
289 ctx->state[3] = 0xF70E5939;
290 ctx->state[4] = 0xFFC00B31;
291 ctx->state[5] = 0x68581511;
292 ctx->state[6] = 0x64F98FA7;
293 ctx->state[7] = 0xBEFA4FA4;
297 ctx->state[0] = 0x6A09E667;
298 ctx->state[1] = 0xBB67AE85;
299 ctx->state[2] = 0x3C6EF372;
300 ctx->state[3] = 0xA54FF53A;
301 ctx->state[4] = 0x510E527F;
302 ctx->state[5] = 0x9B05688C;
303 ctx->state[6] = 0x1F83D9AB;
304 ctx->state[7] = 0x5BE0CD19;
324 ctx->transform(ctx->state, ctx->buffer);
331 ctx->transform(ctx->state, ctx->buffer);
333 ctx->transform(ctx->state, &data[i]);
351 AV_WB32(digest + i*4, ctx->state[i]);