Home
last modified time | relevance | path

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

/crypto/
A Dsha512.c276 .statesize = SHA512_SHASH_STATE_SIZE,
292 .statesize = SHA512_SHASH_STATE_SIZE,
310 .statesize = SHA512_SHASH_STATE_SIZE,
328 .statesize = SHA512_SHASH_STATE_SIZE,
A Dsha256.c270 .statesize = SHA256_SHASH_STATE_SIZE,
286 .statesize = SHA256_SHASH_STATE_SIZE,
304 .statesize = SHA256_SHASH_STATE_SIZE,
322 .statesize = SHA256_SHASH_STATE_SIZE,
A Dlskcipher.c74 unsigned statesize = crypto_lskcipher_statesize(tfm); in crypto_lskcipher_crypt_unaligned() local
89 memcpy(tiv, iv, ivsize + statesize); in crypto_lskcipher_crypt_unaligned()
117 memcpy(iv, tiv, ivsize + statesize); in crypto_lskcipher_crypt_unaligned()
260 seq_printf(m, "statesize : %u\n", skcipher->co.statesize); in crypto_lskcipher_show()
579 inst->alg.co.statesize = cipher_alg->co.statesize; in lskcipher_alloc_instance_simple()
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()
A Dsha1.c161 .statesize = SHA1_SHASH_STATE_SIZE,
179 .statesize = SHA1_SHASH_STATE_SIZE,
A Dshash.c493 if (!alg->export && !alg->halg.statesize) in shash_prepare_alg()
494 alg->halg.statesize = alg->descsize; in shash_prepare_alg()
501 alg->statesize += base->cra_blocksize + 1; in shash_prepare_alg()
512 if (alg->statesize > HASH_MAX_STATESIZE) in shash_prepare_alg()
A Dhmac.c212 ss = salg->statesize; in __hmac_create_shash()
227 inst->alg.statesize = ss; in __hmac_create_shash()
476 ss = halg->statesize; in hmac_create_ahash()
495 inst->alg.halg.statesize = ss; in hmac_create_ahash()
A Dskcipher.c337 seq_printf(m, "statesize : %u\n", skcipher->statesize); in crypto_skcipher_show()
429 alg->statesize > PAGE_SIZE / 2 || in skcipher_prepare_alg_common()
430 (alg->ivsize + alg->statesize) > PAGE_SIZE / 2) in skcipher_prepare_alg_common()
456 if (!alg->statesize) { in skcipher_prepare_alg()
A Dbpf_crypto_skcipher.c63 .statesize = bpf_crypto_lskcipher_statesize,
A Darc4.c59 .co.statesize = sizeof(struct arc4_ctx),
A Dahash.c707 crypto_ahash_set_statesize(hash, alg->halg.statesize); in crypto_ahash_init_tfm()
875 nhash->statesize = hash->statesize; in crypto_clone_ahash()
937 if (alg->halg.statesize == 0) in ahash_prepare_alg()
940 if (base->cra_reqsize && base->cra_reqsize < alg->halg.statesize) in ahash_prepare_alg()
972 alg->halg.statesize += base->cra_blocksize + 1; in ahash_prepare_alg()
A Dpolyval-generic.c176 .statesize = sizeof(struct polyval_desc_ctx),
A Dblake2b_generic.c155 .statesize = BLAKE2B_STATE_SIZE, \
A Dcbc.c151 if (inst->alg.co.statesize) in crypto_cbc_create()
A Dtestmgr.c1303 const unsigned int statesize = crypto_shash_statesize(tfm); in test_shash_vec_cfg() local
1406 testmgr_poison(hashstate + statesize, in test_shash_vec_cfg()
1413 if (!testmgr_is_poison(hashstate + statesize, in test_shash_vec_cfg()
1486 const unsigned int statesize = crypto_ahash_statesize(tfm); in test_ahash_vec_cfg() local
1584 testmgr_poison(hashstate + statesize, in test_ahash_vec_cfg()
1592 if (!testmgr_is_poison(hashstate + statesize, in test_ahash_vec_cfg()
1915 unsigned int statesize; in __alg_test_hash() local
1960 statesize = crypto_ahash_statesize(atfm); in __alg_test_hash()
1962 statesize = max(statesize, crypto_shash_statesize(stfm)); in __alg_test_hash()
1963 hashstate = kmalloc(statesize + TESTMGR_POISON_LEN, GFP_KERNEL); in __alg_test_hash()
A Dhctr2.c487 polyval_alg->statesize * 2; in hctr2_create_common()
A Dcryptd.c698 inst->alg.halg.statesize = alg->statesize; in cryptd_create_hash()

Completed in 44 milliseconds