Lines Matching refs:state

76 	context->state[0] = 0x67452301;  in PHP_RIPEMD128Init()
77 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD128Init()
78 context->state[2] = 0x98BADCFE; in PHP_RIPEMD128Init()
79 context->state[3] = 0x10325476; in PHP_RIPEMD128Init()
91 context->state[0] = 0x67452301; in PHP_RIPEMD256Init()
92 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD256Init()
93 context->state[2] = 0x98BADCFE; in PHP_RIPEMD256Init()
94 context->state[3] = 0x10325476; in PHP_RIPEMD256Init()
95 context->state[4] = 0x76543210; in PHP_RIPEMD256Init()
96 context->state[5] = 0xFEDCBA98; in PHP_RIPEMD256Init()
97 context->state[6] = 0x89ABCDEF; in PHP_RIPEMD256Init()
98 context->state[7] = 0x01234567; in PHP_RIPEMD256Init()
110 context->state[0] = 0x67452301; in PHP_RIPEMD160Init()
111 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD160Init()
112 context->state[2] = 0x98BADCFE; in PHP_RIPEMD160Init()
113 context->state[3] = 0x10325476; in PHP_RIPEMD160Init()
114 context->state[4] = 0xC3D2E1F0; in PHP_RIPEMD160Init()
126 context->state[0] = 0x67452301; in PHP_RIPEMD320Init()
127 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD320Init()
128 context->state[2] = 0x98BADCFE; in PHP_RIPEMD320Init()
129 context->state[3] = 0x10325476; in PHP_RIPEMD320Init()
130 context->state[4] = 0xC3D2E1F0; in PHP_RIPEMD320Init()
131 context->state[5] = 0x76543210; in PHP_RIPEMD320Init()
132 context->state[6] = 0xFEDCBA98; in PHP_RIPEMD320Init()
133 context->state[7] = 0x89ABCDEF; in PHP_RIPEMD320Init()
134 context->state[8] = 0x01234567; in PHP_RIPEMD320Init()
135 context->state[9] = 0x3C2D1E0F; in PHP_RIPEMD320Init()
203 static void RIPEMD128Transform(uint32_t state[4], const unsigned char block[64]) in RIPEMD128Transform()
205 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD128Transform()
206 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3]; in RIPEMD128Transform()
240 tmp = state[1] + c + dd; in RIPEMD128Transform()
241 state[1] = state[2] + d + aa; in RIPEMD128Transform()
242 state[2] = state[3] + a + bb; in RIPEMD128Transform()
243 state[3] = state[0] + b + cc; in RIPEMD128Transform()
244 state[0] = tmp; in RIPEMD128Transform()
275 RIPEMD128Transform(context->state, context->buffer); in PHP_RIPEMD128Update()
278 RIPEMD128Transform(context->state, &input[i]); in PHP_RIPEMD128Update()
294 static void RIPEMD256Transform(uint32_t state[8], const unsigned char block[64]) in RIPEMD256Transform()
296 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD256Transform()
297 uint32_t aa = state[4], bb = state[5], cc = state[6], dd = state[7]; in RIPEMD256Transform()
335 state[0] += a; in RIPEMD256Transform()
336 state[1] += b; in RIPEMD256Transform()
337 state[2] += c; in RIPEMD256Transform()
338 state[3] += d; in RIPEMD256Transform()
339 state[4] += aa; in RIPEMD256Transform()
340 state[5] += bb; in RIPEMD256Transform()
341 state[6] += cc; in RIPEMD256Transform()
342 state[7] += dd; in RIPEMD256Transform()
373 RIPEMD256Transform(context->state, context->buffer); in PHP_RIPEMD256Update()
376 RIPEMD256Transform(context->state, &input[i]); in PHP_RIPEMD256Update()
392 static void RIPEMD160Transform(uint32_t state[5], const unsigned char block[64]) in RIPEMD160Transform()
394 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD160Transform()
395 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3], ee = state[4]; in RIPEMD160Transform()
436 tmp = state[1] + c + dd; in RIPEMD160Transform()
437 state[1] = state[2] + d + ee; in RIPEMD160Transform()
438 state[2] = state[3] + e + aa; in RIPEMD160Transform()
439 state[3] = state[4] + a + bb; in RIPEMD160Transform()
440 state[4] = state[0] + b + cc; in RIPEMD160Transform()
441 state[0] = tmp; in RIPEMD160Transform()
472 RIPEMD160Transform(context->state, context->buffer); in PHP_RIPEMD160Update()
475 RIPEMD160Transform(context->state, &input[i]); in PHP_RIPEMD160Update()
491 static void RIPEMD320Transform(uint32_t state[10], const unsigned char block[64]) in RIPEMD320Transform()
493 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD320Transform()
494 uint32_t aa = state[5], bb = state[6], cc = state[7], dd = state[8], ee = state[9]; in RIPEMD320Transform()
540 state[0] += a; in RIPEMD320Transform()
541 state[1] += b; in RIPEMD320Transform()
542 state[2] += c; in RIPEMD320Transform()
543 state[3] += d; in RIPEMD320Transform()
544 state[4] += e; in RIPEMD320Transform()
545 state[5] += aa; in RIPEMD320Transform()
546 state[6] += bb; in RIPEMD320Transform()
547 state[7] += cc; in RIPEMD320Transform()
548 state[8] += dd; in RIPEMD320Transform()
549 state[9] += ee; in RIPEMD320Transform()
580 RIPEMD320Transform(context->state, context->buffer); in PHP_RIPEMD320Update()
583 RIPEMD320Transform(context->state, &input[i]); in PHP_RIPEMD320Update()
649 RIPEMDEncode(digest, context->state, 16); in PHP_RIPEMD128Final()
686 RIPEMDEncode(digest, context->state, 32); in PHP_RIPEMD256Final()
723 RIPEMDEncode(digest, context->state, 20); in PHP_RIPEMD160Final()
760 RIPEMDEncode(digest, context->state, 40); in PHP_RIPEMD320Final()