Lines Matching refs:state
39 ctx->state[0] = 0x7380166F; in sm3_init()
40 ctx->state[1] = 0x4914B2B9; in sm3_init()
41 ctx->state[2] = 0x172442D7; in sm3_init()
42 ctx->state[3] = 0xDA8A0600; in sm3_init()
43 ctx->state[4] = 0xA96F30BC; in sm3_init()
44 ctx->state[5] = 0x163138AA; in sm3_init()
45 ctx->state[6] = 0xE38DEE4D; in sm3_init()
46 ctx->state[7] = 0xB0FB0E4E; in sm3_init()
108 A = ctx->state[0]; in sm3_process()
109 B = ctx->state[1]; in sm3_process()
110 C = ctx->state[2]; in sm3_process()
111 D = ctx->state[3]; in sm3_process()
112 E = ctx->state[4]; in sm3_process()
113 F = ctx->state[5]; in sm3_process()
114 G = ctx->state[6]; in sm3_process()
115 H = ctx->state[7]; in sm3_process()
147 ctx->state[0] ^= A; in sm3_process()
148 ctx->state[1] ^= B; in sm3_process()
149 ctx->state[2] ^= C; in sm3_process()
150 ctx->state[3] ^= D; in sm3_process()
151 ctx->state[4] ^= E; in sm3_process()
152 ctx->state[5] ^= F; in sm3_process()
153 ctx->state[6] ^= G; in sm3_process()
154 ctx->state[7] ^= H; in sm3_process()
216 PUT_UINT32_BE(ctx->state[0], output, 0); in sm3_final()
217 PUT_UINT32_BE(ctx->state[1], output, 4); in sm3_final()
218 PUT_UINT32_BE(ctx->state[2], output, 8); in sm3_final()
219 PUT_UINT32_BE(ctx->state[3], output, 12); in sm3_final()
220 PUT_UINT32_BE(ctx->state[4], output, 16); in sm3_final()
221 PUT_UINT32_BE(ctx->state[5], output, 20); in sm3_final()
222 PUT_UINT32_BE(ctx->state[6], output, 24); in sm3_final()
223 PUT_UINT32_BE(ctx->state[7], output, 28); in sm3_final()