Lines Matching refs:state_sz

52 	u8 state_sz;    /* expected state size, only set once */  member
125 memcpy(ctx->base.ctxr->data, req->state, req->state_sz); in safexcel_context_control()
132 CONTEXT_CONTROL_SIZE(req->state_sz / in safexcel_context_control()
138 CONTEXT_CONTROL_SIZE(req->state_sz / in safexcel_context_control()
160 memcpy(ctx->base.ctxr->data, req->state, req->state_sz); in safexcel_context_control()
187 CONTEXT_CONTROL_SIZE((req->state_sz >> 2) + 1) | in safexcel_context_control()
196 ctx->base.ctxr->data[req->state_sz >> 2] = in safexcel_context_control()
204 memcpy(ctx->base.ctxr->data + (req->state_sz >> 2), in safexcel_context_control()
205 &ctx->base.opad, req->state_sz); in safexcel_context_control()
209 CONTEXT_CONTROL_SIZE(req->state_sz >> 1) | in safexcel_context_control()
215 CONTEXT_CONTROL_SIZE(req->state_sz >> 2) | in safexcel_context_control()
701 memcmp(ctx->base.ctxr->data, req->state, req->state_sz) || in safexcel_ahash_enqueue()
704 memcmp(ctx->base.ctxr->data + (req->state_sz>>2), in safexcel_ahash_enqueue()
705 &ctx->base.opad, req->state_sz)))) in safexcel_ahash_enqueue()
889 memcpy(export->state, req->state, req->state_sz); in safexcel_ahash_export()
911 memcpy(req->state, export->state, req->state_sz); in safexcel_ahash_import()
942 req->state_sz = SHA1_DIGEST_SIZE; in safexcel_sha1_init()
1025 req->state_sz = SHA1_DIGEST_SIZE; in safexcel_hmac_sha1_init()
1193 unsigned int state_sz) in safexcel_hmac_setkey() argument
1204 (memcmp(&base->ipad, istate.state, state_sz) || in safexcel_hmac_setkey()
1205 memcmp(&base->opad, ostate.state, state_sz))) in safexcel_hmac_setkey()
1208 memcpy(&base->ipad, &istate.state, state_sz); in safexcel_hmac_setkey()
1209 memcpy(&base->opad, &ostate.state, state_sz); in safexcel_hmac_setkey()
1216 unsigned int state_sz) in safexcel_hmac_alg_setkey() argument
1220 return safexcel_hmac_setkey(&ctx->base, key, keylen, alg, state_sz); in safexcel_hmac_alg_setkey()
1271 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha256_init()
1328 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha224_init()
1398 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_hmac_sha224_init()
1470 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_hmac_sha256_init()
1529 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_sha512_init()
1586 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_sha384_init()
1656 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_hmac_sha512_init()
1728 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_hmac_sha384_init()
1787 req->state_sz = MD5_DIGEST_SIZE; in safexcel_md5_init()
1850 req->state_sz = MD5_DIGEST_SIZE; in safexcel_hmac_md5_init()
1933 req->state_sz = sizeof(u32); in safexcel_crc32_init()
2004 req->state_sz = ctx->key_sz; in safexcel_cbcmac_init()
2280 req->state_sz = SM3_DIGEST_SIZE; in safexcel_sm3_init()
2350 req->state_sz = SM3_DIGEST_SIZE; in safexcel_hmac_sm3_init()
2410 req->state_sz = SHA3_224_DIGEST_SIZE; in safexcel_sha3_224_init()
2603 req->state_sz = SHA3_256_DIGEST_SIZE; in safexcel_sha3_256_init()
2661 req->state_sz = SHA3_384_DIGEST_SIZE; in safexcel_sha3_384_init()
2719 req->state_sz = SHA3_512_DIGEST_SIZE; in safexcel_sha3_512_init()
2874 req->state_sz = SHA3_224_BLOCK_SIZE / 2; in safexcel_hmac_sha3_224_init()
2945 req->state_sz = SHA3_256_BLOCK_SIZE / 2; in safexcel_hmac_sha3_256_init()
3016 req->state_sz = SHA3_384_BLOCK_SIZE / 2; in safexcel_hmac_sha3_384_init()
3087 req->state_sz = SHA3_512_BLOCK_SIZE / 2; in safexcel_hmac_sha3_512_init()