Lines Matching refs:state
33 extern void ppc_spe_sha256_transform(u32 *state, const u8 *src, u32 blocks);
63 sctx->state[0] = SHA256_H0; in ppc_spe_sha256_init()
64 sctx->state[1] = SHA256_H1; in ppc_spe_sha256_init()
65 sctx->state[2] = SHA256_H2; in ppc_spe_sha256_init()
66 sctx->state[3] = SHA256_H3; in ppc_spe_sha256_init()
67 sctx->state[4] = SHA256_H4; in ppc_spe_sha256_init()
68 sctx->state[5] = SHA256_H5; in ppc_spe_sha256_init()
69 sctx->state[6] = SHA256_H6; in ppc_spe_sha256_init()
70 sctx->state[7] = SHA256_H7; in ppc_spe_sha256_init()
80 sctx->state[0] = SHA224_H0; in ppc_spe_sha224_init()
81 sctx->state[1] = SHA224_H1; in ppc_spe_sha224_init()
82 sctx->state[2] = SHA224_H2; in ppc_spe_sha224_init()
83 sctx->state[3] = SHA224_H3; in ppc_spe_sha224_init()
84 sctx->state[4] = SHA224_H4; in ppc_spe_sha224_init()
85 sctx->state[5] = SHA224_H5; in ppc_spe_sha224_init()
86 sctx->state[6] = SHA224_H6; in ppc_spe_sha224_init()
87 sctx->state[7] = SHA224_H7; in ppc_spe_sha224_init()
114 ppc_spe_sha256_transform(sctx->state, (const u8 *)sctx->buf, 1); in ppc_spe_sha256_update()
127 ppc_spe_sha256_transform(sctx->state, src, bytes >> 6); in ppc_spe_sha256_update()
154 ppc_spe_sha256_transform(sctx->state, sctx->buf, 1); in ppc_spe_sha256_final()
161 ppc_spe_sha256_transform(sctx->state, sctx->buf, 1); in ppc_spe_sha256_final()
165 dst[0] = cpu_to_be32(sctx->state[0]); in ppc_spe_sha256_final()
166 dst[1] = cpu_to_be32(sctx->state[1]); in ppc_spe_sha256_final()
167 dst[2] = cpu_to_be32(sctx->state[2]); in ppc_spe_sha256_final()
168 dst[3] = cpu_to_be32(sctx->state[3]); in ppc_spe_sha256_final()
169 dst[4] = cpu_to_be32(sctx->state[4]); in ppc_spe_sha256_final()
170 dst[5] = cpu_to_be32(sctx->state[5]); in ppc_spe_sha256_final()
171 dst[6] = cpu_to_be32(sctx->state[6]); in ppc_spe_sha256_final()
172 dst[7] = cpu_to_be32(sctx->state[7]); in ppc_spe_sha256_final()