Lines Matching refs:state_sz

54 	u8 state_sz;    /* expected state size, only set once */  member
127 memcpy(ctx->base.ctxr->data, req->state, req->state_sz); in safexcel_context_control()
134 CONTEXT_CONTROL_SIZE(req->state_sz / in safexcel_context_control()
140 CONTEXT_CONTROL_SIZE(req->state_sz / in safexcel_context_control()
162 memcpy(ctx->base.ctxr->data, req->state, req->state_sz); in safexcel_context_control()
189 CONTEXT_CONTROL_SIZE((req->state_sz >> 2) + 1) | in safexcel_context_control()
198 ctx->base.ctxr->data[req->state_sz >> 2] = in safexcel_context_control()
206 memcpy(ctx->base.ctxr->data + (req->state_sz >> 2), in safexcel_context_control()
207 &ctx->base.opad, req->state_sz); in safexcel_context_control()
211 CONTEXT_CONTROL_SIZE(req->state_sz >> 1) | in safexcel_context_control()
217 CONTEXT_CONTROL_SIZE(req->state_sz >> 2) | in safexcel_context_control()
703 memcmp(ctx->base.ctxr->data, req->state, req->state_sz) || in safexcel_ahash_enqueue()
706 memcmp(ctx->base.ctxr->data + (req->state_sz>>2), in safexcel_ahash_enqueue()
707 &ctx->base.opad, req->state_sz)))) in safexcel_ahash_enqueue()
891 memcpy(export->state, req->state, req->state_sz); in safexcel_ahash_export()
913 memcpy(req->state, export->state, req->state_sz); in safexcel_ahash_import()
944 req->state_sz = SHA1_DIGEST_SIZE; in safexcel_sha1_init()
1027 req->state_sz = SHA1_DIGEST_SIZE; in safexcel_hmac_sha1_init()
1195 unsigned int state_sz) in safexcel_hmac_setkey() argument
1206 (memcmp(&base->ipad, istate.state, state_sz) || in safexcel_hmac_setkey()
1207 memcmp(&base->opad, ostate.state, state_sz))) in safexcel_hmac_setkey()
1210 memcpy(&base->ipad, &istate.state, state_sz); in safexcel_hmac_setkey()
1211 memcpy(&base->opad, &ostate.state, state_sz); in safexcel_hmac_setkey()
1218 unsigned int state_sz) in safexcel_hmac_alg_setkey() argument
1222 return safexcel_hmac_setkey(&ctx->base, key, keylen, alg, state_sz); in safexcel_hmac_alg_setkey()
1273 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha256_init()
1330 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha224_init()
1400 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_hmac_sha224_init()
1472 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_hmac_sha256_init()
1531 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_sha512_init()
1588 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_sha384_init()
1658 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_hmac_sha512_init()
1730 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_hmac_sha384_init()
1789 req->state_sz = MD5_DIGEST_SIZE; in safexcel_md5_init()
1852 req->state_sz = MD5_DIGEST_SIZE; in safexcel_hmac_md5_init()
1935 req->state_sz = sizeof(u32); in safexcel_crc32_init()
2006 req->state_sz = ctx->key_sz; in safexcel_cbcmac_init()
2282 req->state_sz = SM3_DIGEST_SIZE; in safexcel_sm3_init()
2352 req->state_sz = SM3_DIGEST_SIZE; in safexcel_hmac_sm3_init()
2412 req->state_sz = SHA3_224_DIGEST_SIZE; in safexcel_sha3_224_init()
2605 req->state_sz = SHA3_256_DIGEST_SIZE; in safexcel_sha3_256_init()
2663 req->state_sz = SHA3_384_DIGEST_SIZE; in safexcel_sha3_384_init()
2721 req->state_sz = SHA3_512_DIGEST_SIZE; in safexcel_sha3_512_init()
2876 req->state_sz = SHA3_224_BLOCK_SIZE / 2; in safexcel_hmac_sha3_224_init()
2947 req->state_sz = SHA3_256_BLOCK_SIZE / 2; in safexcel_hmac_sha3_256_init()
3018 req->state_sz = SHA3_384_BLOCK_SIZE / 2; in safexcel_hmac_sha3_384_init()
3089 req->state_sz = SHA3_512_BLOCK_SIZE / 2; in safexcel_hmac_sha3_512_init()