Lines Matching refs:state_sz
53 u8 state_sz; /* expected state size, only set once */ member
126 memcpy(ctx->base.ctxr->data, req->state, req->state_sz); in safexcel_context_control()
133 CONTEXT_CONTROL_SIZE(req->state_sz / in safexcel_context_control()
139 CONTEXT_CONTROL_SIZE(req->state_sz / in safexcel_context_control()
161 memcpy(ctx->base.ctxr->data, req->state, req->state_sz); in safexcel_context_control()
188 CONTEXT_CONTROL_SIZE((req->state_sz >> 2) + 1) | in safexcel_context_control()
197 ctx->base.ctxr->data[req->state_sz >> 2] = in safexcel_context_control()
205 memcpy(ctx->base.ctxr->data + (req->state_sz >> 2), in safexcel_context_control()
206 &ctx->base.opad, req->state_sz); in safexcel_context_control()
210 CONTEXT_CONTROL_SIZE(req->state_sz >> 1) | in safexcel_context_control()
216 CONTEXT_CONTROL_SIZE(req->state_sz >> 2) | in safexcel_context_control()
702 memcmp(ctx->base.ctxr->data, req->state, req->state_sz) || in safexcel_ahash_enqueue()
705 memcmp(ctx->base.ctxr->data + (req->state_sz>>2), in safexcel_ahash_enqueue()
706 &ctx->base.opad, req->state_sz)))) in safexcel_ahash_enqueue()
890 memcpy(export->state, req->state, req->state_sz); in safexcel_ahash_export()
912 memcpy(req->state, export->state, req->state_sz); in safexcel_ahash_import()
943 req->state_sz = SHA1_DIGEST_SIZE; in safexcel_sha1_init()
1026 req->state_sz = SHA1_DIGEST_SIZE; in safexcel_hmac_sha1_init()
1194 unsigned int state_sz) in safexcel_hmac_setkey() argument
1205 (memcmp(&base->ipad, istate.state, state_sz) || in safexcel_hmac_setkey()
1206 memcmp(&base->opad, ostate.state, state_sz))) in safexcel_hmac_setkey()
1209 memcpy(&base->ipad, &istate.state, state_sz); in safexcel_hmac_setkey()
1210 memcpy(&base->opad, &ostate.state, state_sz); in safexcel_hmac_setkey()
1217 unsigned int state_sz) in safexcel_hmac_alg_setkey() argument
1221 return safexcel_hmac_setkey(&ctx->base, key, keylen, alg, state_sz); in safexcel_hmac_alg_setkey()
1272 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha256_init()
1329 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha224_init()
1399 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_hmac_sha224_init()
1471 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_hmac_sha256_init()
1530 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_sha512_init()
1587 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_sha384_init()
1657 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_hmac_sha512_init()
1729 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_hmac_sha384_init()
1788 req->state_sz = MD5_DIGEST_SIZE; in safexcel_md5_init()
1851 req->state_sz = MD5_DIGEST_SIZE; in safexcel_hmac_md5_init()
1934 req->state_sz = sizeof(u32); in safexcel_crc32_init()
2005 req->state_sz = ctx->key_sz; in safexcel_cbcmac_init()
2281 req->state_sz = SM3_DIGEST_SIZE; in safexcel_sm3_init()
2351 req->state_sz = SM3_DIGEST_SIZE; in safexcel_hmac_sm3_init()
2411 req->state_sz = SHA3_224_DIGEST_SIZE; in safexcel_sha3_224_init()
2604 req->state_sz = SHA3_256_DIGEST_SIZE; in safexcel_sha3_256_init()
2662 req->state_sz = SHA3_384_DIGEST_SIZE; in safexcel_sha3_384_init()
2720 req->state_sz = SHA3_512_DIGEST_SIZE; in safexcel_sha3_512_init()
2875 req->state_sz = SHA3_224_BLOCK_SIZE / 2; in safexcel_hmac_sha3_224_init()
2946 req->state_sz = SHA3_256_BLOCK_SIZE / 2; in safexcel_hmac_sha3_256_init()
3017 req->state_sz = SHA3_384_BLOCK_SIZE / 2; in safexcel_hmac_sha3_384_init()
3088 req->state_sz = SHA3_512_BLOCK_SIZE / 2; in safexcel_hmac_sha3_512_init()