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()
291 RIPEMD128Transform(context->state, context->buffer); in PHP_RIPEMD128Update()
294 RIPEMD128Transform(context->state, &input[i]); in PHP_RIPEMD128Update()
310 static void RIPEMD256Transform(uint32_t state[8], const unsigned char block[64]) in RIPEMD256Transform()
312 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD256Transform()
313 uint32_t aa = state[4], bb = state[5], cc = state[6], dd = state[7]; in RIPEMD256Transform()
351 state[0] += a; in RIPEMD256Transform()
352 state[1] += b; in RIPEMD256Transform()
353 state[2] += c; in RIPEMD256Transform()
354 state[3] += d; in RIPEMD256Transform()
355 state[4] += aa; in RIPEMD256Transform()
356 state[5] += bb; in RIPEMD256Transform()
357 state[6] += cc; in RIPEMD256Transform()
358 state[7] += dd; in RIPEMD256Transform()
389 RIPEMD256Transform(context->state, context->buffer); in PHP_RIPEMD256Update()
392 RIPEMD256Transform(context->state, &input[i]); in PHP_RIPEMD256Update()
408 static void RIPEMD160Transform(uint32_t state[5], const unsigned char block[64]) in RIPEMD160Transform()
410 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD160Transform()
411 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3], ee = state[4]; in RIPEMD160Transform()
452 tmp = state[1] + c + dd; in RIPEMD160Transform()
453 state[1] = state[2] + d + ee; in RIPEMD160Transform()
454 state[2] = state[3] + e + aa; in RIPEMD160Transform()
455 state[3] = state[4] + a + bb; in RIPEMD160Transform()
456 state[4] = state[0] + b + cc; in RIPEMD160Transform()
457 state[0] = tmp; in RIPEMD160Transform()
488 RIPEMD160Transform(context->state, context->buffer); in PHP_RIPEMD160Update()
491 RIPEMD160Transform(context->state, &input[i]); in PHP_RIPEMD160Update()
507 static void RIPEMD320Transform(uint32_t state[10], const unsigned char block[64]) in RIPEMD320Transform()
509 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD320Transform()
510 uint32_t aa = state[5], bb = state[6], cc = state[7], dd = state[8], ee = state[9]; in RIPEMD320Transform()
556 state[0] += a; in RIPEMD320Transform()
557 state[1] += b; in RIPEMD320Transform()
558 state[2] += c; in RIPEMD320Transform()
559 state[3] += d; in RIPEMD320Transform()
560 state[4] += e; in RIPEMD320Transform()
561 state[5] += aa; in RIPEMD320Transform()
562 state[6] += bb; in RIPEMD320Transform()
563 state[7] += cc; in RIPEMD320Transform()
564 state[8] += dd; in RIPEMD320Transform()
565 state[9] += ee; in RIPEMD320Transform()
596 RIPEMD320Transform(context->state, context->buffer); in PHP_RIPEMD320Update()
599 RIPEMD320Transform(context->state, &input[i]); in PHP_RIPEMD320Update()
665 RIPEMDEncode(digest, context->state, 16); in PHP_RIPEMD128Final()
702 RIPEMDEncode(digest, context->state, 32); in PHP_RIPEMD256Final()
739 RIPEMDEncode(digest, context->state, 20); in PHP_RIPEMD160Final()
776 RIPEMDEncode(digest, context->state, 40); in PHP_RIPEMD320Final()