Home
last modified time | relevance | path

Searched refs:ivsize (Results 1 – 25 of 29) sorted by relevance

12

/crypto/
Dechainiv.c34 unsigned int ivsize = crypto_aead_ivsize(geniv); in echainiv_encrypt() local
37 if (req->cryptlen < ivsize) in echainiv_encrypt()
65 memcpy(&nseqno, info + ivsize - 8, 8); in echainiv_encrypt()
67 memset(info, 0, ivsize); in echainiv_encrypt()
69 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); in echainiv_encrypt()
74 memcpy(&a, ctx->salt + ivsize - 8, 8); in echainiv_encrypt()
79 memcpy(info + ivsize - 8, &a, 8); in echainiv_encrypt()
80 } while ((ivsize -= 8)); in echainiv_encrypt()
92 unsigned int ivsize = crypto_aead_ivsize(geniv); in echainiv_decrypt() local
94 if (req->cryptlen < ivsize) in echainiv_decrypt()
[all …]
Dseqiv.c56 unsigned int ivsize = 8; in seqiv_aead_encrypt() local
59 if (req->cryptlen < ivsize) in seqiv_aead_encrypt()
85 info = kmemdup(req->iv, ivsize, req->base.flags & in seqiv_aead_encrypt()
97 req->cryptlen - ivsize, info); in seqiv_aead_encrypt()
98 aead_request_set_ad(subreq, req->assoclen + ivsize); in seqiv_aead_encrypt()
100 crypto_xor(info, ctx->salt, ivsize); in seqiv_aead_encrypt()
101 scatterwalk_map_and_copy(info, req->dst, req->assoclen, ivsize, 1); in seqiv_aead_encrypt()
116 unsigned int ivsize = 8; in seqiv_aead_decrypt() local
118 if (req->cryptlen < ivsize + crypto_aead_authsize(geniv)) in seqiv_aead_decrypt()
128 req->cryptlen - ivsize, req->iv); in seqiv_aead_decrypt()
[all …]
Dessiv.c206 int ivsize = crypto_aead_ivsize(tfm); in essiv_aead_crypt() local
207 int ssize = req->assoclen - ivsize; in essiv_aead_crypt()
218 memcpy(iv, req->iv, ivsize); in essiv_aead_crypt()
238 sg_set_buf(rctx->sg + 1, iv, ivsize); in essiv_aead_crypt()
415 int ivsize) in essiv_supported_algorithms() argument
430 if (ivsize != alg->cra_blocksize) in essiv_supported_algorithms()
457 int ivsize; in essiv_create() local
494 ivsize = crypto_skcipher_alg_ivsize(skcipher_alg); in essiv_create()
518 ivsize = aead_alg->ivsize; in essiv_create()
543 ivsize)) { in essiv_create()
[all …]
Dgeniv.c47 unsigned int ivsize; in aead_geniv_alloc() local
69 ivsize = crypto_aead_alg_ivsize(alg); in aead_geniv_alloc()
73 if (ivsize < sizeof(u64)) in aead_geniv_alloc()
94 inst->alg.ivsize = ivsize; in aead_geniv_alloc()
Dskcipher.c171 memcpy(walk->oiv, walk->iv, walk->ivsize); in skcipher_walk_done()
210 memcpy(walk->oiv, walk->iv, walk->ivsize); in skcipher_walk_complete()
401 unsigned ivsize = walk->ivsize; in skcipher_copy_iv() local
413 size += ivsize; in skcipher_copy_iv()
415 size += aligned_bs + ivsize; in skcipher_copy_iv()
428 walk->iv = memcpy(iv, walk->iv, walk->ivsize); in skcipher_copy_iv()
471 walk->ivsize = crypto_skcipher_ivsize(tfm); in skcipher_walk_skcipher()
536 walk->ivsize = crypto_aead_ivsize(tfm); in skcipher_walk_aead_common()
698 seq_printf(m, "ivsize : %u\n", skcipher->ivsize); in crypto_skcipher_show()
718 rblkcipher.ivsize = skcipher->ivsize; in crypto_skcipher_report()
[all …]
Dchacha_generic.c80 .ivsize = CHACHA_IV_SIZE,
95 .ivsize = XCHACHA_IV_SIZE,
110 .ivsize = XCHACHA_IV_SIZE,
Daead.c158 raead.ivsize = aead->ivsize; in crypto_aead_report()
179 seq_printf(m, "ivsize : %u\n", aead->ivsize); in crypto_aead_show()
224 if (max3(alg->maxauthsize, alg->ivsize, alg->chunksize) > in aead_prepare_alg()
Dsimd.c182 alg->ivsize = ialg->ivsize; in simd_skcipher_create_compat()
429 alg->ivsize = ialg->ivsize; in simd_aead_create_compat()
Dtestmgr.c1928 const unsigned int ivsize = crypto_aead_ivsize(tfm); in test_aead_vec_cfg() local
1978 if (WARN_ON(ivsize > MAX_IVLEN)) in test_aead_vec_cfg()
1981 memcpy(iv, vec->iv, ivsize); in test_aead_vec_cfg()
1983 memset(iv, 0, ivsize); in test_aead_vec_cfg()
2165 unsigned int ivsize) in mutate_aead_message() argument
2167 const unsigned int aad_tail_size = aad_iv ? ivsize : 0; in mutate_aead_message()
2198 const unsigned int ivsize = crypto_aead_ivsize(tfm); in generate_aead_message() local
2205 if (suite->aad_iv && vec->alen >= ivsize) in generate_aead_message()
2207 memcpy((u8 *)vec->assoc + vec->alen - ivsize, vec->iv, ivsize); in generate_aead_message()
2227 memcpy(iv, vec->iv, ivsize); in generate_aead_message()
[all …]
Dchacha20poly1305.c556 const char *name, unsigned int ivsize) in chachapoly_create() argument
565 if (ivsize > CHACHAPOLY_IV_SIZE) in chachapoly_create()
576 ctx->saltlen = CHACHAPOLY_IV_SIZE - ivsize; in chachapoly_create()
617 inst->alg.ivsize = ivsize; in chachapoly_create()
Decb.c71 inst->alg.ivsize = 0; /* ECB mode doesn't take an IV */ in crypto_ecb_create()
Dalgif_skcipher.c45 unsigned ivsize = crypto_skcipher_ivsize(tfm); in skcipher_sendmsg() local
47 return af_alg_sendmsg(sock, msg, size, ivsize); in skcipher_sendmsg()
Dkeywrap.c283 inst->alg.ivsize = SEMIBSIZE; in crypto_kw_create()
Dcrypto_null.c118 .ivsize = NULL_IV_SIZE,
Dalgif_aead.c69 unsigned int ivsize = crypto_aead_ivsize(tfm); in aead_sendmsg() local
71 return af_alg_sendmsg(sock, msg, size, ivsize); in aead_sendmsg()
Daegis128-core.c512 .ivsize = AEGIS128_NONCE_SIZE,
531 .ivsize = AEGIS128_NONCE_SIZE,
Daf_alg.c831 unsigned int ivsize) in af_alg_sendmsg() argument
860 if (con.iv && con.iv->ivlen != ivsize) in af_alg_sendmsg()
880 memcpy(ctx->iv, con.iv->iv, ivsize); in af_alg_sendmsg()
Dgcm.c638 inst->alg.ivsize = GCM_AES_IV_SIZE; in crypto_gcm_create_common()
877 inst->alg.ivsize = GCM_RFC4106_IV_SIZE; in crypto_rfc4106_create()
1092 inst->alg.ivsize = GCM_RFC4543_IV_SIZE; in crypto_rfc4543_create()
Dlrw.c384 inst->alg.ivsize = LRW_BLOCK_SIZE; in lrw_create()
Dpcrypt.c272 inst->alg.ivsize = crypto_aead_alg_ivsize(alg); in pcrypt_create_aead()
Dctr.c305 inst->alg.ivsize = CTR_RFC3686_IV_SIZE; in crypto_rfc3686_create()
Dcts.c365 inst->alg.ivsize = alg->base.cra_blocksize; in crypto_cts_create()
Dccm.c510 inst->alg.ivsize = 16; in crypto_ccm_create_common()
754 inst->alg.ivsize = 8; in crypto_rfc4309_create()
Dxts.c423 inst->alg.ivsize = XTS_BLOCK_SIZE; in xts_create()
Dcryptd.c402 inst->alg.ivsize = crypto_skcipher_alg_ivsize(alg); in cryptd_create_skcipher()
857 inst->alg.ivsize = crypto_aead_alg_ivsize(alg); in cryptd_create_aead()

12