/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() 105 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv_tail() local 116 scatterwalk_map_and_copy(hash, dst, assoclen + cryptlen, authsize, 1); in crypto_authenc_esn_genicv_tail() 139 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv() local 145 if (!authsize) in crypto_authenc_esn_genicv() 233 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_decrypt_tail() local 241 unsigned int cryptlen = req->cryptlen - authsize; in crypto_authenc_esn_decrypt_tail() 247 if (!authsize) in crypto_authenc_esn_decrypt_tail() 255 if (crypto_memneq(ihash, ohash, authsize)) in crypto_authenc_esn_decrypt_tail() [all …]
|
D | aegis128-core.c | 384 unsigned int authsize) in crypto_aegis128_setauthsize() argument 386 if (authsize > AEGIS128_MAX_AUTH_SIZE) in crypto_aegis128_setauthsize() 388 if (authsize < AEGIS128_MIN_AUTH_SIZE) in crypto_aegis128_setauthsize() 417 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_encrypt() local 428 authsize, 1); in crypto_aegis128_encrypt() 442 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_decrypt() local 443 unsigned int cryptlen = req->cryptlen - authsize; in crypto_aegis128_decrypt() 446 authsize, 0); in crypto_aegis128_decrypt() 455 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_aegis128_decrypt()
|
D | aead.c | 69 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() argument 73 if ((!authsize && crypto_aead_maxauthsize(tfm)) || in crypto_aead_setauthsize() 74 authsize > crypto_aead_maxauthsize(tfm)) in crypto_aead_setauthsize() 78 err = crypto_aead_alg(tfm)->setauthsize(tfm, authsize); in crypto_aead_setauthsize() 83 tfm->authsize = authsize; in crypto_aead_setauthsize() 139 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm() 224 unsigned int authsize) in aead_geniv_setauthsize() argument 228 return crypto_aead_setauthsize(ctx->child, authsize); in aead_geniv_setauthsize()
|
D | gcm.c | 153 unsigned int authsize) in crypto_gcm_setauthsize() argument 155 return crypto_gcm_check_authsize(authsize); in crypto_gcm_setauthsize() 477 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify() local 478 unsigned int cryptlen = req->cryptlen - authsize; in crypto_gcm_verify() 482 req->assoclen + cryptlen, authsize, 0); in crypto_gcm_verify() 483 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify() 512 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt() local 516 cryptlen -= authsize; in crypto_gcm_decrypt() 749 unsigned int authsize) in crypto_rfc4106_setauthsize() argument 754 err = crypto_rfc4106_check_authsize(authsize); in crypto_rfc4106_setauthsize() [all …]
|
D | ccm.c | 117 unsigned int authsize) in crypto_ccm_setauthsize() argument 119 switch (authsize) { in crypto_ccm_setauthsize() 337 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt_done() local 338 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done() 347 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done() 360 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt() local 367 cryptlen -= authsize; in crypto_ccm_decrypt() 374 authsize, 0); in crypto_ccm_decrypt() 395 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt() 626 unsigned int authsize) in crypto_rfc4309_setauthsize() argument [all …]
|
D | authenc.c | 250 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt_tail() local 251 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 254 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail() 256 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail() 269 req->cryptlen - authsize, req->iv); in crypto_authenc_decrypt_tail() 291 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt() local 306 req->assoclen + req->cryptlen - authsize); in crypto_authenc_decrypt()
|
D | tcrypt.c | 252 unsigned int tcount, u8 authsize, in test_mb_aead_speed() argument 291 ret = crypto_aead_setauthsize(tfm, authsize); in test_mb_aead_speed() 339 if (*b_size + authsize > XBUFSIZE * PAGE_SIZE) { in test_mb_aead_speed() 341 authsize + *b_size, in test_mb_aead_speed() 382 *b_size + (enc ? 0 : authsize), in test_mb_aead_speed() 386 *b_size + (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 610 ret = crypto_aead_setauthsize(tfm, authsize); in test_aead_speed() 629 sg_init_aead(sg, xbuf, *b_size + (enc ? 0 : authsize), in test_aead_speed() [all …]
|
D | pcrypt.c | 44 unsigned int authsize) in pcrypt_aead_setauthsize() argument 48 return crypto_aead_setauthsize(ctx->child, authsize); in pcrypt_aead_setauthsize()
|
D | simd.c | 309 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize() argument 314 return crypto_aead_setauthsize(child, authsize); in simd_aead_setauthsize()
|
D | algif_aead.c | 511 static int aead_setauthsize(void *private, unsigned int authsize) in aead_setauthsize() argument 515 return crypto_aead_setauthsize(tfm->aead, authsize); in aead_setauthsize()
|
D | essiv.c | 144 unsigned int authsize) in essiv_aead_setauthsize() argument 148 return crypto_aead_setauthsize(tctx->u.aead, authsize); in essiv_aead_setauthsize()
|
D | testmgr.c | 1847 const unsigned int authsize = vec->clen - vec->plen; in test_aead_vec_cfg() local 1878 err = crypto_aead_setauthsize(tfm, authsize); in test_aead_vec_cfg() 2063 unsigned int authsize; in generate_random_aead_testvec() local 2081 authsize = maxauthsize; in generate_random_aead_testvec() 2083 authsize = prandom_u32() % (maxauthsize + 1); in generate_random_aead_testvec() 2084 if (WARN_ON(authsize > maxdatasize)) in generate_random_aead_testvec() 2085 authsize = maxdatasize; in generate_random_aead_testvec() 2086 maxdatasize -= authsize; in generate_random_aead_testvec() 2087 vec->setauthsize_error = crypto_aead_setauthsize(tfm, authsize); in generate_random_aead_testvec() 2099 vec->clen = vec->plen + authsize; in generate_random_aead_testvec() [all …]
|
D | chacha20poly1305.c | 499 unsigned int authsize) in chachapoly_setauthsize() argument 501 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
|
D | cryptd.c | 744 unsigned int authsize) in cryptd_aead_setauthsize() argument 749 return crypto_aead_setauthsize(child, authsize); in cryptd_aead_setauthsize()
|