Home
last modified time | relevance | path

Searched refs:statesize (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/crypto/starfive/
H A Djh7110-hash.c570 .statesize = sizeof(struct sha256_state),
599 .statesize = sizeof(struct sha256_state),
627 .statesize = sizeof(struct sha256_state),
656 .statesize = sizeof(struct sha256_state),
684 .statesize = sizeof(struct sha512_state),
713 .statesize = sizeof(struct sha512_state),
741 .statesize = sizeof(struct sha512_state),
770 .statesize = sizeof(struct sha512_state),
798 .statesize = sizeof(struct sm3_state),
827 .statesize = sizeof(struct sm3_state),
/linux/crypto/
H A Dalgif_skcipher.c56 unsigned statesize; in algif_skcipher_export() local
68 statesize = crypto_skcipher_statesize(tfm); in algif_skcipher_export()
69 ctx->state = sock_kmalloc(sk, statesize, GFP_ATOMIC); in algif_skcipher_export()
75 sock_kzfree_s(sk, ctx->state, statesize); in algif_skcipher_export()
H A Dsha256.c335 .statesize = SHA256_SHASH_STATE_SIZE,
353 .statesize = SHA256_SHASH_STATE_SIZE,
373 .statesize = SHA256_SHASH_STATE_SIZE,
393 .statesize = SHA256_SHASH_STATE_SIZE,
H A Dsha512.c341 .statesize = SHA512_SHASH_STATE_SIZE,
359 .statesize = SHA512_SHASH_STATE_SIZE,
379 .statesize = SHA512_SHASH_STATE_SIZE,
399 .statesize = SHA512_SHASH_STATE_SIZE,
H A Dmd5.c194 .statesize = MD5_SHASH_STATE_SIZE,
214 .statesize = MD5_SHASH_STATE_SIZE,
H A Dsha1.c198 .statesize = SHA1_SHASH_STATE_SIZE,
218 .statesize = SHA1_SHASH_STATE_SIZE,
H A Dahash.c721 crypto_ahash_set_statesize(hash, alg->halg.statesize); in crypto_ahash_init_tfm()
889 nhash->statesize = hash->statesize; in crypto_clone_ahash()
951 if (alg->halg.statesize == 0) in ahash_prepare_alg()
954 if (base->cra_reqsize && base->cra_reqsize < alg->halg.statesize) in ahash_prepare_alg()
986 alg->halg.statesize += base->cra_blocksize + 1; in ahash_prepare_alg()
H A Dskcipher.c588 seq_printf(m, "statesize : %u\n", skcipher->statesize); in crypto_skcipher_show()
680 alg->statesize > PAGE_SIZE / 2 || in skcipher_prepare_alg_common()
681 (alg->ivsize + alg->statesize) > PAGE_SIZE / 2) in skcipher_prepare_alg_common()
707 if (!alg->statesize) { in skcipher_prepare_alg()
H A Dtestmgr.c1297 const unsigned int statesize = crypto_shash_statesize(tfm); in test_shash_vec_cfg() local
1400 testmgr_poison(hashstate + statesize, in test_shash_vec_cfg()
1407 if (!testmgr_is_poison(hashstate + statesize, in test_shash_vec_cfg()
1480 const unsigned int statesize = crypto_ahash_statesize(tfm); in test_ahash_vec_cfg() local
1578 testmgr_poison(hashstate + statesize, in test_ahash_vec_cfg()
1586 if (!testmgr_is_poison(hashstate + statesize, in test_ahash_vec_cfg()
1909 unsigned int statesize; in __alg_test_hash() local
1954 statesize = crypto_ahash_statesize(atfm); in __alg_test_hash()
1956 statesize = max(statesize, crypto_shash_statesize(stfm)); in __alg_test_hash()
1957 hashstate = kmalloc(statesize + TESTMGR_POISON_LEN, GFP_KERNEL); in __alg_test_hash()
/linux/include/linux/
H A Dbpf_crypto.h15 unsigned int (*statesize)(void *tfm); member
/linux/drivers/crypto/caam/
H A Dcaamhash.c1604 .statesize = sizeof(struct caam_export_state),
1625 .statesize = sizeof(struct caam_export_state),
1646 .statesize = sizeof(struct caam_export_state),
1667 .statesize = sizeof(struct caam_export_state),
1688 .statesize = sizeof(struct caam_export_state),
1709 .statesize = sizeof(struct caam_export_state),
1728 .statesize = sizeof(struct caam_export_state),
1747 .statesize = sizeof(struct caam_export_state),
/linux/drivers/crypto/
H A Dimg-hash.c771 .statesize = sizeof(struct md5_state),
797 .statesize = sizeof(struct sha1_state),
823 .statesize = sizeof(struct sha256_state),
849 .statesize = sizeof(struct sha256_state),
/linux/include/video/
H A Dsticore.h187 u32 statesize; member
/linux/kernel/bpf/
H A Dcrypto.c207 ctx->siv_len = type->ivsize(ctx->tfm) + type->statesize(ctx->tfm); in bpf_crypto_ctx_create()
/linux/drivers/crypto/tegra/
H A Dtegra-se-aes.c1756 unsigned int statesize; in tegra_cmac_init_fallback() local
1766 statesize = crypto_shash_statesize(ctx->fallback_tfm); in tegra_cmac_init_fallback()
1768 if (statesize > sizeof(struct tegra_cmac_reqctx)) in tegra_cmac_init_fallback()
1769 crypto_ahash_set_statesize(tfm, statesize); in tegra_cmac_init_fallback()
1969 .halg.statesize = sizeof(struct tegra_cmac_reqctx),
/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-cmac.c376 halg->statesize = sizeof(struct ccp_aes_cmac_exp_ctx); in ccp_register_aes_cmac_algs()
H A Dccp-crypto-sha.c484 halg->statesize = sizeof(struct ccp_sha_exp_ctx); in ccp_register_sha_alg()
/linux/arch/arm64/crypto/
H A Dghash-ce-glue.c186 .statesize = sizeof(struct ghash_desc_ctx),
/linux/drivers/crypto/axis/
H A Dartpec6_crypto.c2633 .halg.statesize = sizeof(struct artpec6_hash_export_state),
2656 .halg.statesize = sizeof(struct artpec6_hash_export_state),
2680 .halg.statesize = sizeof(struct artpec6_hash_export_state),
/linux/arch/s390/crypto/
H A Dphmac_s390.c943 .statesize = sizeof(struct kmac_sha2_ctx), \