/crypto/ |
D | echainiv.c | 34 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 …]
|
D | seqiv.c | 56 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 …]
|
D | essiv.c | 206 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 …]
|
D | geniv.c | 47 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()
|
D | skcipher.c | 171 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 …]
|
D | chacha_generic.c | 80 .ivsize = CHACHA_IV_SIZE, 95 .ivsize = XCHACHA_IV_SIZE, 110 .ivsize = XCHACHA_IV_SIZE,
|
D | aead.c | 158 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()
|
D | simd.c | 182 alg->ivsize = ialg->ivsize; in simd_skcipher_create_compat() 429 alg->ivsize = ialg->ivsize; in simd_aead_create_compat()
|
D | testmgr.c | 1928 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 …]
|
D | chacha20poly1305.c | 556 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()
|
D | ecb.c | 71 inst->alg.ivsize = 0; /* ECB mode doesn't take an IV */ in crypto_ecb_create()
|
D | algif_skcipher.c | 45 unsigned ivsize = crypto_skcipher_ivsize(tfm); in skcipher_sendmsg() local 47 return af_alg_sendmsg(sock, msg, size, ivsize); in skcipher_sendmsg()
|
D | keywrap.c | 283 inst->alg.ivsize = SEMIBSIZE; in crypto_kw_create()
|
D | crypto_null.c | 118 .ivsize = NULL_IV_SIZE,
|
D | algif_aead.c | 69 unsigned int ivsize = crypto_aead_ivsize(tfm); in aead_sendmsg() local 71 return af_alg_sendmsg(sock, msg, size, ivsize); in aead_sendmsg()
|
D | aegis128-core.c | 512 .ivsize = AEGIS128_NONCE_SIZE, 531 .ivsize = AEGIS128_NONCE_SIZE,
|
D | af_alg.c | 831 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()
|
D | gcm.c | 638 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()
|
D | lrw.c | 384 inst->alg.ivsize = LRW_BLOCK_SIZE; in lrw_create()
|
D | pcrypt.c | 272 inst->alg.ivsize = crypto_aead_alg_ivsize(alg); in pcrypt_create_aead()
|
D | ctr.c | 305 inst->alg.ivsize = CTR_RFC3686_IV_SIZE; in crypto_rfc3686_create()
|
D | cts.c | 365 inst->alg.ivsize = alg->base.cra_blocksize; in crypto_cts_create()
|
D | ccm.c | 510 inst->alg.ivsize = 16; in crypto_ccm_create_common() 754 inst->alg.ivsize = 8; in crypto_rfc4309_create()
|
D | xts.c | 423 inst->alg.ivsize = XTS_BLOCK_SIZE; in xts_create()
|
D | cryptd.c | 402 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()
|