Lines Matching refs:state
39 uint32_t state[10]; ///< current hash value
41 void (*transform)(uint32_t *state, const uint8_t buffer[64]);
137 static void ripemd128_transform(uint32_t *state, const uint8_t buffer[64])
143 a = e = state[0];
144 b = f = state[1];
145 c = g = state[2];
146 d = h = state[3];
187 h += c + state[1];
188 state[1] = state[2] + d + e;
189 state[2] = state[3] + a + f;
190 state[3] = state[0] + b + g;
191 state[0] = h;
194 static void ripemd256_transform(uint32_t *state, const uint8_t buffer[64])
200 a = state[0]; b = state[1]; c = state[2]; d = state[3];
201 e = state[4]; f = state[5]; g = state[6]; h = state[7];
250 state[0] += a; state[1] += b; state[2] += c; state[3] += d;
251 state[4] += e; state[5] += f; state[6] += g; state[7] += h;
319 static void ripemd160_transform(uint32_t *state, const uint8_t buffer[64])
325 a = f = state[0];
326 b = g = state[1];
327 c = h = state[2];
328 d = i = state[3];
329 e = j = state[4];
383 i += c + state[1];
384 state[1] = state[2] + d + j;
385 state[2] = state[3] + e + f;
386 state[3] = state[4] + a + g;
387 state[4] = state[0] + b + h;
388 state[0] = i;
391 static void ripemd320_transform(uint32_t *state, const uint8_t buffer[64])
397 a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4];
398 f = state[5]; g = state[6]; h = state[7]; i = state[8]; j = state[9];
462 state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e;
463 state[5] += f; state[6] += g; state[7] += h; state[8] += i; state[9] += j;
471 ctx->state[0] = 0x67452301;
472 ctx->state[1] = 0xEFCDAB89;
473 ctx->state[2] = 0x98BADCFE;
474 ctx->state[3] = 0x10325476;
478 ctx->state[0] = 0x67452301;
479 ctx->state[1] = 0xEFCDAB89;
480 ctx->state[2] = 0x98BADCFE;
481 ctx->state[3] = 0x10325476;
482 ctx->state[4] = 0xC3D2E1F0;
486 ctx->state[0] = 0x67452301;
487 ctx->state[1] = 0xEFCDAB89;
488 ctx->state[2] = 0x98BADCFE;
489 ctx->state[3] = 0x10325476;
490 ctx->state[4] = 0x76543210;
491 ctx->state[5] = 0xFEDCBA98;
492 ctx->state[6] = 0x89ABCDEF;
493 ctx->state[7] = 0x01234567;
497 ctx->state[0] = 0x67452301;
498 ctx->state[1] = 0xEFCDAB89;
499 ctx->state[2] = 0x98BADCFE;
500 ctx->state[3] = 0x10325476;
501 ctx->state[4] = 0xC3D2E1F0;
502 ctx->state[5] = 0x76543210;
503 ctx->state[6] = 0xFEDCBA98;
504 ctx->state[7] = 0x89ABCDEF;
505 ctx->state[8] = 0x01234567;
506 ctx->state[9] = 0x3C2D1E0F;
527 ctx->transform(ctx->state, ctx->buffer);
535 ctx->transform(ctx->state, ctx->buffer);
541 ctx->transform(ctx->state, data);
558 AV_WL32(digest + i*4, ctx->state[i]);