Lines Matching refs:state
78 context->state[0] = 0x67452301; in PHP_RIPEMD128Init()
79 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD128Init()
80 context->state[2] = 0x98BADCFE; in PHP_RIPEMD128Init()
81 context->state[3] = 0x10325476; in PHP_RIPEMD128Init()
93 context->state[0] = 0x67452301; in PHP_RIPEMD256Init()
94 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD256Init()
95 context->state[2] = 0x98BADCFE; in PHP_RIPEMD256Init()
96 context->state[3] = 0x10325476; in PHP_RIPEMD256Init()
97 context->state[4] = 0x76543210; in PHP_RIPEMD256Init()
98 context->state[5] = 0xFEDCBA98; in PHP_RIPEMD256Init()
99 context->state[6] = 0x89ABCDEF; in PHP_RIPEMD256Init()
100 context->state[7] = 0x01234567; in PHP_RIPEMD256Init()
112 context->state[0] = 0x67452301; in PHP_RIPEMD160Init()
113 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD160Init()
114 context->state[2] = 0x98BADCFE; in PHP_RIPEMD160Init()
115 context->state[3] = 0x10325476; in PHP_RIPEMD160Init()
116 context->state[4] = 0xC3D2E1F0; in PHP_RIPEMD160Init()
128 context->state[0] = 0x67452301; in PHP_RIPEMD320Init()
129 context->state[1] = 0xEFCDAB89; in PHP_RIPEMD320Init()
130 context->state[2] = 0x98BADCFE; in PHP_RIPEMD320Init()
131 context->state[3] = 0x10325476; in PHP_RIPEMD320Init()
132 context->state[4] = 0xC3D2E1F0; in PHP_RIPEMD320Init()
133 context->state[5] = 0x76543210; in PHP_RIPEMD320Init()
134 context->state[6] = 0xFEDCBA98; in PHP_RIPEMD320Init()
135 context->state[7] = 0x89ABCDEF; in PHP_RIPEMD320Init()
136 context->state[8] = 0x01234567; in PHP_RIPEMD320Init()
137 context->state[9] = 0x3C2D1E0F; in PHP_RIPEMD320Init()
205 static void RIPEMD128Transform(uint32_t state[4], const unsigned char block[64]) in RIPEMD128Transform()
207 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD128Transform()
208 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3]; in RIPEMD128Transform()
242 tmp = state[1] + c + dd; in RIPEMD128Transform()
243 state[1] = state[2] + d + aa; in RIPEMD128Transform()
244 state[2] = state[3] + a + bb; in RIPEMD128Transform()
245 state[3] = state[0] + b + cc; in RIPEMD128Transform()
246 state[0] = tmp; in RIPEMD128Transform()
277 RIPEMD128Transform(context->state, context->buffer); in PHP_RIPEMD128Update()
280 RIPEMD128Transform(context->state, &input[i]); in PHP_RIPEMD128Update()
296 static void RIPEMD256Transform(uint32_t state[8], const unsigned char block[64]) in RIPEMD256Transform()
298 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD256Transform()
299 uint32_t aa = state[4], bb = state[5], cc = state[6], dd = state[7]; in RIPEMD256Transform()
337 state[0] += a; in RIPEMD256Transform()
338 state[1] += b; in RIPEMD256Transform()
339 state[2] += c; in RIPEMD256Transform()
340 state[3] += d; in RIPEMD256Transform()
341 state[4] += aa; in RIPEMD256Transform()
342 state[5] += bb; in RIPEMD256Transform()
343 state[6] += cc; in RIPEMD256Transform()
344 state[7] += dd; in RIPEMD256Transform()
375 RIPEMD256Transform(context->state, context->buffer); in PHP_RIPEMD256Update()
378 RIPEMD256Transform(context->state, &input[i]); in PHP_RIPEMD256Update()
394 static void RIPEMD160Transform(uint32_t state[5], const unsigned char block[64]) in RIPEMD160Transform()
396 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD160Transform()
397 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3], ee = state[4]; in RIPEMD160Transform()
438 tmp = state[1] + c + dd; in RIPEMD160Transform()
439 state[1] = state[2] + d + ee; in RIPEMD160Transform()
440 state[2] = state[3] + e + aa; in RIPEMD160Transform()
441 state[3] = state[4] + a + bb; in RIPEMD160Transform()
442 state[4] = state[0] + b + cc; in RIPEMD160Transform()
443 state[0] = tmp; in RIPEMD160Transform()
474 RIPEMD160Transform(context->state, context->buffer); in PHP_RIPEMD160Update()
477 RIPEMD160Transform(context->state, &input[i]); in PHP_RIPEMD160Update()
493 static void RIPEMD320Transform(uint32_t state[10], const unsigned char block[64]) in RIPEMD320Transform()
495 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD320Transform()
496 uint32_t aa = state[5], bb = state[6], cc = state[7], dd = state[8], ee = state[9]; in RIPEMD320Transform()
542 state[0] += a; in RIPEMD320Transform()
543 state[1] += b; in RIPEMD320Transform()
544 state[2] += c; in RIPEMD320Transform()
545 state[3] += d; in RIPEMD320Transform()
546 state[4] += e; in RIPEMD320Transform()
547 state[5] += aa; in RIPEMD320Transform()
548 state[6] += bb; in RIPEMD320Transform()
549 state[7] += cc; in RIPEMD320Transform()
550 state[8] += dd; in RIPEMD320Transform()
551 state[9] += ee; in RIPEMD320Transform()
582 RIPEMD320Transform(context->state, context->buffer); in PHP_RIPEMD320Update()
585 RIPEMD320Transform(context->state, &input[i]); in PHP_RIPEMD320Update()
651 RIPEMDEncode(digest, context->state, 16); in PHP_RIPEMD128Final()
688 RIPEMDEncode(digest, context->state, 32); in PHP_RIPEMD256Final()
725 RIPEMDEncode(digest, context->state, 20); in PHP_RIPEMD160Final()
762 RIPEMDEncode(digest, context->state, 40); in PHP_RIPEMD320Final()