/crypto/ |
D | authencesn.c | 50 unsigned int authsize) in crypto_authenc_esn_setauthsize() argument 52 if (authsize > 0 && authsize < 4) in crypto_authenc_esn_setauthsize() 95 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv_tail() local 106 scatterwalk_map_and_copy(hash, dst, assoclen + cryptlen, authsize, 1); in crypto_authenc_esn_genicv_tail() 128 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv() local 134 if (!authsize) in crypto_authenc_esn_genicv() 221 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_decrypt_tail() local 229 unsigned int cryptlen = req->cryptlen - authsize; in crypto_authenc_esn_decrypt_tail() 235 if (!authsize) in crypto_authenc_esn_decrypt_tail() 243 if (crypto_memneq(ihash, ohash, authsize)) in crypto_authenc_esn_decrypt_tail() [all …]
|
D | aegis128-core.c | 379 unsigned int authsize) in crypto_aegis128_setauthsize() argument 381 if (authsize > AEGIS128_MAX_AUTH_SIZE) in crypto_aegis128_setauthsize() 383 if (authsize < AEGIS128_MIN_AUTH_SIZE) in crypto_aegis128_setauthsize() 392 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_encrypt_generic() local 406 authsize, 1); in crypto_aegis128_encrypt_generic() 415 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_decrypt_generic() local 416 unsigned int cryptlen = req->cryptlen - authsize; in crypto_aegis128_decrypt_generic() 422 authsize, 0); in crypto_aegis128_decrypt_generic() 431 if (unlikely(crypto_memneq(tag.bytes, zeros, authsize))) { in crypto_aegis128_decrypt_generic() 453 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_encrypt_simd() local [all …]
|
D | aead.c | 73 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() argument 77 if ((!authsize && crypto_aead_maxauthsize(tfm)) || in crypto_aead_setauthsize() 78 authsize > crypto_aead_maxauthsize(tfm)) in crypto_aead_setauthsize() 82 err = crypto_aead_alg(tfm)->setauthsize(tfm, authsize); in crypto_aead_setauthsize() 87 tfm->authsize = authsize; in crypto_aead_setauthsize() 166 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm()
|
D | gcm.c | 147 unsigned int authsize) in crypto_gcm_setauthsize() argument 149 return crypto_gcm_check_authsize(authsize); in crypto_gcm_setauthsize() 469 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify() local 470 unsigned int cryptlen = req->cryptlen - authsize; in crypto_gcm_verify() 474 req->assoclen + cryptlen, authsize, 0); in crypto_gcm_verify() 475 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify() 504 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt() local 508 cryptlen -= authsize; in crypto_gcm_decrypt() 708 unsigned int authsize) in crypto_rfc4106_setauthsize() argument 713 err = crypto_rfc4106_check_authsize(authsize); in crypto_rfc4106_setauthsize() [all …]
|
D | aegis128-neon.c | 59 unsigned int authsize) in crypto_aegis128_final_simd() argument 65 authsize); in crypto_aegis128_final_simd()
|
D | ccm.c | 109 unsigned int authsize) in crypto_ccm_setauthsize() argument 111 switch (authsize) { in crypto_ccm_setauthsize() 328 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt_done() local 329 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done() 338 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done() 351 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt() local 358 cryptlen -= authsize; in crypto_ccm_decrypt() 365 authsize, 0); in crypto_ccm_decrypt() 386 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt() 587 unsigned int authsize) in crypto_rfc4309_setauthsize() argument [all …]
|
D | authenc.c | 239 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt_tail() local 240 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 243 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail() 245 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail() 258 req->cryptlen - authsize, req->iv); in crypto_authenc_decrypt_tail() 279 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt() local 294 req->assoclen + req->cryptlen - authsize); in crypto_authenc_decrypt()
|
D | geniv.c | 28 unsigned int authsize) in aead_geniv_setauthsize() argument 32 return crypto_aead_setauthsize(ctx->child, authsize); in aead_geniv_setauthsize()
|
D | aegis-neon.h | 15 unsigned int authsize);
|
D | aegis128-neon-inner.c | 320 unsigned int authsize) in crypto_aegis128_final_neon() argument 336 if (authsize > 0) { in crypto_aegis128_final_neon() 338 vld1q_u8(permute + authsize)); in crypto_aegis128_final_neon()
|
D | aegis.h | 44 unsigned int authsize);
|
D | tcrypt.c | 245 unsigned int tcount, u8 authsize, in test_mb_aead_speed() argument 284 ret = crypto_aead_setauthsize(tfm, authsize); in test_mb_aead_speed() 339 if (bs + authsize > XBUFSIZE * PAGE_SIZE) { in test_mb_aead_speed() 341 authsize + bs, in test_mb_aead_speed() 382 bs + (enc ? 0 : authsize), in test_mb_aead_speed() 386 bs + (enc ? authsize : 0), in test_mb_aead_speed() 409 (enc ? 0 : authsize), in test_mb_aead_speed() 520 unsigned int tcount, u8 authsize, in test_aead_speed() argument 573 ret = crypto_aead_setauthsize(tfm, authsize); in test_aead_speed() 635 sg_init_aead(sg, xbuf, bs + (enc ? 0 : authsize), in test_aead_speed() [all …]
|
D | pcrypt.c | 51 unsigned int authsize) in pcrypt_aead_setauthsize() argument 55 return crypto_aead_setauthsize(ctx->child, authsize); in pcrypt_aead_setauthsize()
|
D | testmgr.c | 2105 const unsigned int authsize = vec->clen - vec->plen; in test_aead_vec_cfg() local 2138 err = crypto_aead_setauthsize(tfm, authsize); in test_aead_vec_cfg() 2350 const unsigned int authsize = vec->clen - vec->plen; in mutate_aead_message() local 2361 flip_random_bit(rng, (u8 *)vec->ctext + vec->plen, authsize); in mutate_aead_message() 2383 const unsigned int authsize = vec->clen - vec->plen; in generate_aead_message() local 2384 const bool inauthentic = (authsize >= MIN_COLLISION_FREE_AUTHSIZE) && in generate_aead_message() 2454 unsigned int authsize; in generate_random_aead_testvec() local 2468 authsize = maxauthsize; in generate_random_aead_testvec() 2470 authsize = prandom_u32_below(rng, maxauthsize + 1); in generate_random_aead_testvec() 2471 if (prefer_inauthentic && authsize < MIN_COLLISION_FREE_AUTHSIZE) in generate_random_aead_testvec() [all …]
|
D | simd.c | 302 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize() argument 307 return crypto_aead_setauthsize(child, authsize); in simd_aead_setauthsize()
|
D | algif_aead.c | 493 static int aead_setauthsize(void *private, unsigned int authsize) in aead_setauthsize() argument 497 return crypto_aead_setauthsize(tfm->aead, authsize); in aead_setauthsize()
|
D | essiv.c | 127 unsigned int authsize) in essiv_aead_setauthsize() argument 131 return crypto_aead_setauthsize(tctx->u.aead, authsize); in essiv_aead_setauthsize()
|
D | chacha20poly1305.c | 492 unsigned int authsize) in chachapoly_setauthsize() argument 494 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
|
D | cryptd.c | 729 unsigned int authsize) in cryptd_aead_setauthsize() argument 734 return crypto_aead_setauthsize(child, authsize); in cryptd_aead_setauthsize()
|