Searched refs:sctx (Results 1 – 5 of 5) sorted by relevance
24 struct sha512_state *sctx = shash_desc_ctx(desc); in sha384_base_init() local26 sctx->state[0] = SHA384_H0; in sha384_base_init()27 sctx->state[1] = SHA384_H1; in sha384_base_init()28 sctx->state[2] = SHA384_H2; in sha384_base_init()29 sctx->state[3] = SHA384_H3; in sha384_base_init()30 sctx->state[4] = SHA384_H4; in sha384_base_init()31 sctx->state[5] = SHA384_H5; in sha384_base_init()32 sctx->state[6] = SHA384_H6; in sha384_base_init()33 sctx->state[7] = SHA384_H7; in sha384_base_init()34 sctx->count[0] = sctx->count[1] = 0; in sha384_base_init()[all …]
23 struct sm3_state *sctx = shash_desc_ctx(desc); in sm3_base_init() local25 sctx->state[0] = SM3_IVA; in sm3_base_init()26 sctx->state[1] = SM3_IVB; in sm3_base_init()27 sctx->state[2] = SM3_IVC; in sm3_base_init()28 sctx->state[3] = SM3_IVD; in sm3_base_init()29 sctx->state[4] = SM3_IVE; in sm3_base_init()30 sctx->state[5] = SM3_IVF; in sm3_base_init()31 sctx->state[6] = SM3_IVG; in sm3_base_init()32 sctx->state[7] = SM3_IVH; in sm3_base_init()33 sctx->count = 0; in sm3_base_init()[all …]
23 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_base_init() local25 sctx->state[0] = SHA1_H0; in sha1_base_init()26 sctx->state[1] = SHA1_H1; in sha1_base_init()27 sctx->state[2] = SHA1_H2; in sha1_base_init()28 sctx->state[3] = SHA1_H3; in sha1_base_init()29 sctx->state[4] = SHA1_H4; in sha1_base_init()30 sctx->count = 0; in sha1_base_init()40 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_base_do_update() local41 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_base_do_update()43 sctx->count += len; in sha1_base_do_update()[all …]
24 struct sha256_state *sctx = shash_desc_ctx(desc); in sha224_base_init() local26 sha224_init(sctx); in sha224_base_init()32 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_init() local34 sha256_init(sctx); in sha256_base_init()43 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_base_do_update() local44 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE; in sha256_base_do_update()46 sctx->count += len; in sha256_base_do_update()54 memcpy(sctx->buf + partial, data, p); in sha256_base_do_update()58 block_fn(sctx, sctx->buf, 1); in sha256_base_do_update()65 block_fn(sctx, data, blocks); in sha256_base_do_update()[all …]
103 static inline void sha256_init(struct sha256_state *sctx) in sha256_init() argument105 sctx->state[0] = SHA256_H0; in sha256_init()106 sctx->state[1] = SHA256_H1; in sha256_init()107 sctx->state[2] = SHA256_H2; in sha256_init()108 sctx->state[3] = SHA256_H3; in sha256_init()109 sctx->state[4] = SHA256_H4; in sha256_init()110 sctx->state[5] = SHA256_H5; in sha256_init()111 sctx->state[6] = SHA256_H6; in sha256_init()112 sctx->state[7] = SHA256_H7; in sha256_init()113 sctx->count = 0; in sha256_init()[all …]