Lines Matching refs:state

92 	context->state[0] = 0x67452301;  in PHP_RIPEMD128Init()
93 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD128Init()
94 context->state[2] = 0x98BADCFE; in PHP_RIPEMD128Init()
95 context->state[3] = 0x10325476; in PHP_RIPEMD128Init()
107 context->state[0] = 0x67452301; in PHP_RIPEMD256Init()
108 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD256Init()
109 context->state[2] = 0x98BADCFE; in PHP_RIPEMD256Init()
110 context->state[3] = 0x10325476; in PHP_RIPEMD256Init()
111 context->state[4] = 0x76543210; in PHP_RIPEMD256Init()
112 context->state[5] = 0xFEDCBA98; in PHP_RIPEMD256Init()
113 context->state[6] = 0x89ABCDEF; in PHP_RIPEMD256Init()
114 context->state[7] = 0x01234567; in PHP_RIPEMD256Init()
126 context->state[0] = 0x67452301; in PHP_RIPEMD160Init()
127 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD160Init()
128 context->state[2] = 0x98BADCFE; in PHP_RIPEMD160Init()
129 context->state[3] = 0x10325476; in PHP_RIPEMD160Init()
130 context->state[4] = 0xC3D2E1F0; in PHP_RIPEMD160Init()
142 context->state[0] = 0x67452301; in PHP_RIPEMD320Init()
143 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD320Init()
144 context->state[2] = 0x98BADCFE; in PHP_RIPEMD320Init()
145 context->state[3] = 0x10325476; in PHP_RIPEMD320Init()
146 context->state[4] = 0xC3D2E1F0; in PHP_RIPEMD320Init()
147 context->state[5] = 0x76543210; in PHP_RIPEMD320Init()
148 context->state[6] = 0xFEDCBA98; in PHP_RIPEMD320Init()
149 context->state[7] = 0x89ABCDEF; in PHP_RIPEMD320Init()
150 context->state[8] = 0x01234567; in PHP_RIPEMD320Init()
151 context->state[9] = 0x3C2D1E0F; in PHP_RIPEMD320Init()
219 static void RIPEMD128Transform(uint32_t state[4], const unsigned char block[64]) in RIPEMD128Transform()
221 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD128Transform()
222 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3]; in RIPEMD128Transform()
256 tmp = state[1] + c + dd; in RIPEMD128Transform()
257 state[1] = state[2] + d + aa; in RIPEMD128Transform()
258 state[2] = state[3] + a + bb; in RIPEMD128Transform()
259 state[3] = state[0] + b + cc; in RIPEMD128Transform()
260 state[0] = tmp; in RIPEMD128Transform()
292 RIPEMD128Transform(context->state, context->buffer); in PHP_RIPEMD128Update()
295 RIPEMD128Transform(context->state, &input[i]); in PHP_RIPEMD128Update()
311 static void RIPEMD256Transform(uint32_t state[8], const unsigned char block[64]) in RIPEMD256Transform()
313 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD256Transform()
314 uint32_t aa = state[4], bb = state[5], cc = state[6], dd = state[7]; in RIPEMD256Transform()
352 state[0] += a; in RIPEMD256Transform()
353 state[1] += b; in RIPEMD256Transform()
354 state[2] += c; in RIPEMD256Transform()
355 state[3] += d; in RIPEMD256Transform()
356 state[4] += aa; in RIPEMD256Transform()
357 state[5] += bb; in RIPEMD256Transform()
358 state[6] += cc; in RIPEMD256Transform()
359 state[7] += dd; in RIPEMD256Transform()
391 RIPEMD256Transform(context->state, context->buffer); in PHP_RIPEMD256Update()
394 RIPEMD256Transform(context->state, &input[i]); in PHP_RIPEMD256Update()
410 static void RIPEMD160Transform(uint32_t state[5], const unsigned char block[64]) in RIPEMD160Transform()
412 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD160Transform()
413 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3], ee = state[4]; in RIPEMD160Transform()
454 tmp = state[1] + c + dd; in RIPEMD160Transform()
455 state[1] = state[2] + d + ee; in RIPEMD160Transform()
456 state[2] = state[3] + e + aa; in RIPEMD160Transform()
457 state[3] = state[4] + a + bb; in RIPEMD160Transform()
458 state[4] = state[0] + b + cc; in RIPEMD160Transform()
459 state[0] = tmp; in RIPEMD160Transform()
491 RIPEMD160Transform(context->state, context->buffer); in PHP_RIPEMD160Update()
494 RIPEMD160Transform(context->state, &input[i]); in PHP_RIPEMD160Update()
510 static void RIPEMD320Transform(uint32_t state[10], const unsigned char block[64]) in RIPEMD320Transform()
512 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD320Transform()
513 uint32_t aa = state[5], bb = state[6], cc = state[7], dd = state[8], ee = state[9]; in RIPEMD320Transform()
559 state[0] += a; in RIPEMD320Transform()
560 state[1] += b; in RIPEMD320Transform()
561 state[2] += c; in RIPEMD320Transform()
562 state[3] += d; in RIPEMD320Transform()
563 state[4] += e; in RIPEMD320Transform()
564 state[5] += aa; in RIPEMD320Transform()
565 state[6] += bb; in RIPEMD320Transform()
566 state[7] += cc; in RIPEMD320Transform()
567 state[8] += dd; in RIPEMD320Transform()
568 state[9] += ee; in RIPEMD320Transform()
600 RIPEMD320Transform(context->state, context->buffer); in PHP_RIPEMD320Update()
603 RIPEMD320Transform(context->state, &input[i]); in PHP_RIPEMD320Update()
669 RIPEMDEncode(digest, context->state, 16); in PHP_RIPEMD128Final()
706 RIPEMDEncode(digest, context->state, 32); in PHP_RIPEMD256Final()
743 RIPEMDEncode(digest, context->state, 20); in PHP_RIPEMD160Final()
780 RIPEMDEncode(digest, context->state, 40); in PHP_RIPEMD320Final()