/crypto/ |
D | authencesn.c | 55 unsigned int authsize) in crypto_authenc_esn_setauthsize() argument 57 if (authsize > 0 && authsize < 4) in crypto_authenc_esn_setauthsize() 109 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv_tail() local 120 scatterwalk_map_and_copy(hash, dst, assoclen + cryptlen, authsize, 1); in crypto_authenc_esn_genicv_tail() 143 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv() local 149 if (!authsize) in crypto_authenc_esn_genicv() 237 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_decrypt_tail() local 245 unsigned int cryptlen = req->cryptlen - authsize; in crypto_authenc_esn_decrypt_tail() 251 if (!authsize) in crypto_authenc_esn_decrypt_tail() 259 if (crypto_memneq(ihash, ohash, authsize)) in crypto_authenc_esn_decrypt_tail() [all …]
|
D | aead.c | 64 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() argument 68 if (authsize > crypto_aead_maxauthsize(tfm)) in crypto_aead_setauthsize() 72 err = crypto_aead_alg(tfm)->setauthsize(tfm, authsize); in crypto_aead_setauthsize() 77 tfm->authsize = authsize; in crypto_aead_setauthsize() 95 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm() 184 unsigned int authsize) in aead_geniv_setauthsize() argument 188 return crypto_aead_setauthsize(ctx->child, authsize); in aead_geniv_setauthsize()
|
D | gcm.c | 175 unsigned int authsize) in crypto_gcm_setauthsize() argument 177 switch (authsize) { in crypto_gcm_setauthsize() 512 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify() local 513 unsigned int cryptlen = req->cryptlen - authsize; in crypto_gcm_verify() 517 req->assoclen + cryptlen, authsize, 0); in crypto_gcm_verify() 518 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify() 547 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt() local 551 cryptlen -= authsize; in crypto_gcm_decrypt() 808 unsigned int authsize) in crypto_rfc4106_setauthsize() argument 812 switch (authsize) { in crypto_rfc4106_setauthsize() [all …]
|
D | ccm.c | 111 unsigned int authsize) in crypto_ccm_setauthsize() argument 113 switch (authsize) { in crypto_ccm_setauthsize() 389 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt_done() local 390 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done() 399 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done() 412 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt() local 419 cryptlen -= authsize; in crypto_ccm_decrypt() 426 authsize, 0); in crypto_ccm_decrypt() 447 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt() 692 unsigned int authsize) in crypto_rfc4309_setauthsize() argument [all …]
|
D | authenc.c | 246 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt_tail() local 247 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 250 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail() 252 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail() 265 req->cryptlen - authsize, req->iv); in crypto_authenc_decrypt_tail() 287 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt() local 302 req->assoclen + req->cryptlen - authsize); in crypto_authenc_decrypt()
|
D | testmgr.c | 580 unsigned int authsize, iv_len; in __test_aead() local 678 authsize = abs(template[i].rlen - template[i].ilen); in __test_aead() 679 ret = crypto_aead_setauthsize(tfm, authsize); in __test_aead() 682 d, authsize, j, algo); in __test_aead() 690 template[i].ilen + (enc ? authsize : 0)); in __test_aead() 700 template[i].rlen + (enc ? 0 : authsize)); in __test_aead() 783 authsize = abs(template[i].rlen - template[i].ilen); in __test_aead() 831 n += authsize; in __test_aead() 838 ret = crypto_aead_setauthsize(tfm, authsize); in __test_aead() 841 d, authsize, j, algo); in __test_aead() [all …]
|
D | pcrypt.c | 111 unsigned int authsize) in pcrypt_aead_setauthsize() argument 115 return crypto_aead_setauthsize(ctx->child, authsize); in pcrypt_aead_setauthsize()
|
D | tcrypt.c | 237 unsigned int tcount, u8 authsize, in test_aead_speed() argument 327 ret = crypto_aead_setauthsize(tfm, authsize); in test_aead_speed() 347 *b_size + (enc ? 0 : authsize)); in test_aead_speed() 350 *b_size + (enc ? authsize : 0)); in test_aead_speed() 356 *b_size + (enc ? 0 : authsize), in test_aead_speed()
|
D | chacha20poly1305.c | 514 unsigned int authsize) in chachapoly_setauthsize() argument 516 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
|
D | algif_aead.c | 864 static int aead_setauthsize(void *private, unsigned int authsize) in aead_setauthsize() argument 868 return crypto_aead_setauthsize(tfm->aead, authsize); in aead_setauthsize()
|
D | cryptd.c | 719 unsigned int authsize) in cryptd_aead_setauthsize() argument 724 return crypto_aead_setauthsize(child, authsize); in cryptd_aead_setauthsize()
|