Lines Matching refs:state
47 ctx->state[0] = 0x6A09E667; in sha256_starts()
48 ctx->state[1] = 0xBB67AE85; in sha256_starts()
49 ctx->state[2] = 0x3C6EF372; in sha256_starts()
50 ctx->state[3] = 0xA54FF53A; in sha256_starts()
51 ctx->state[4] = 0x510E527F; in sha256_starts()
52 ctx->state[5] = 0x9B05688C; in sha256_starts()
53 ctx->state[6] = 0x1F83D9AB; in sha256_starts()
54 ctx->state[7] = 0x5BE0CD19; in sha256_starts()
104 A = ctx->state[0]; in sha256_process_one()
105 B = ctx->state[1]; in sha256_process_one()
106 C = ctx->state[2]; in sha256_process_one()
107 D = ctx->state[3]; in sha256_process_one()
108 E = ctx->state[4]; in sha256_process_one()
109 F = ctx->state[5]; in sha256_process_one()
110 G = ctx->state[6]; in sha256_process_one()
111 H = ctx->state[7]; in sha256_process_one()
178 ctx->state[0] += A; in sha256_process_one()
179 ctx->state[1] += B; in sha256_process_one()
180 ctx->state[2] += C; in sha256_process_one()
181 ctx->state[3] += D; in sha256_process_one()
182 ctx->state[4] += E; in sha256_process_one()
183 ctx->state[5] += F; in sha256_process_one()
184 ctx->state[6] += G; in sha256_process_one()
185 ctx->state[7] += H; in sha256_process_one()
258 PUT_UINT32_BE(ctx->state[0], digest, 0); in sha256_finish()
259 PUT_UINT32_BE(ctx->state[1], digest, 4); in sha256_finish()
260 PUT_UINT32_BE(ctx->state[2], digest, 8); in sha256_finish()
261 PUT_UINT32_BE(ctx->state[3], digest, 12); in sha256_finish()
262 PUT_UINT32_BE(ctx->state[4], digest, 16); in sha256_finish()
263 PUT_UINT32_BE(ctx->state[5], digest, 20); in sha256_finish()
264 PUT_UINT32_BE(ctx->state[6], digest, 24); in sha256_finish()
265 PUT_UINT32_BE(ctx->state[7], digest, 28); in sha256_finish()