Home
last modified time | relevance | path

Searched refs:authsize (Results 1 – 8 of 8) sorted by relevance

/crypto/
Dauthencesn.c192 unsigned int authsize; in authenc_esn_verify_ahash_update_done() local
226 authsize = crypto_aead_authsize(authenc_esn); in authenc_esn_verify_ahash_update_done()
227 cryptlen -= authsize; in authenc_esn_verify_ahash_update_done()
228 ihash = ahreq->result + authsize; in authenc_esn_verify_ahash_update_done()
230 authsize, 0); in authenc_esn_verify_ahash_update_done()
232 err = crypto_memneq(ihash, ahreq->result, authsize) ? -EBADMSG : 0; in authenc_esn_verify_ahash_update_done()
253 unsigned int authsize; in authenc_esn_verify_ahash_update_done2() local
275 authsize = crypto_aead_authsize(authenc_esn); in authenc_esn_verify_ahash_update_done2()
276 cryptlen -= authsize; in authenc_esn_verify_ahash_update_done2()
277 ihash = ahreq->result + authsize; in authenc_esn_verify_ahash_update_done2()
[all …]
Dauthenc.c175 unsigned int authsize; in authenc_verify_ahash_update_done() local
197 authsize = crypto_aead_authsize(authenc); in authenc_verify_ahash_update_done()
198 cryptlen -= authsize; in authenc_verify_ahash_update_done()
199 ihash = ahreq->result + authsize; in authenc_verify_ahash_update_done()
201 authsize, 0); in authenc_verify_ahash_update_done()
203 err = crypto_memneq(ihash, ahreq->result, authsize) ? -EBADMSG : 0; in authenc_verify_ahash_update_done()
224 unsigned int authsize; in authenc_verify_ahash_done() local
236 authsize = crypto_aead_authsize(authenc); in authenc_verify_ahash_done()
237 cryptlen -= authsize; in authenc_verify_ahash_done()
238 ihash = ahreq->result + authsize; in authenc_verify_ahash_done()
[all …]
Dgcm.c169 unsigned int authsize) in crypto_gcm_setauthsize() argument
171 switch (authsize) { in crypto_gcm_setauthsize()
578 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify() local
579 unsigned int cryptlen = req->cryptlen - authsize; in crypto_gcm_verify()
582 scatterwalk_map_and_copy(iauth_tag, req->src, cryptlen, authsize, 0); in crypto_gcm_verify()
583 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify()
623 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt() local
627 if (cryptlen < authsize) in crypto_gcm_decrypt()
629 cryptlen -= authsize; in crypto_gcm_decrypt()
882 unsigned int authsize) in crypto_rfc4106_setauthsize() argument
[all …]
Dccm.c105 unsigned int authsize) in crypto_ccm_setauthsize() argument
107 switch (authsize) { in crypto_ccm_setauthsize()
362 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt_done() local
363 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done()
367 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done()
380 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt() local
387 if (cryptlen < authsize) in crypto_ccm_decrypt()
389 cryptlen -= authsize; in crypto_ccm_decrypt()
397 scatterwalk_map_and_copy(authtag, req->src, cryptlen, authsize, 0); in crypto_ccm_decrypt()
426 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt()
[all …]
Daead.c62 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() argument
67 if (authsize > crypto_aead_alg(tfm)->maxauthsize) in crypto_aead_setauthsize()
71 err = crypto_aead_alg(tfm)->setauthsize(crt->base, authsize); in crypto_aead_setauthsize()
76 crypto_aead_crt(crt->base)->authsize = authsize; in crypto_aead_setauthsize()
77 crt->authsize = authsize; in crypto_aead_setauthsize()
109 crt->authsize = alg->maxauthsize; in crypto_init_aead_ops()
194 crt->authsize = alg->maxauthsize; in crypto_init_nivaead_ops()
Dtestmgr.c434 unsigned int authsize; in __test_aead() local
531 authsize = abs(template[i].rlen - template[i].ilen); in __test_aead()
532 ret = crypto_aead_setauthsize(tfm, authsize); in __test_aead()
535 d, authsize, j, algo); in __test_aead()
546 template[i].ilen + (enc ? authsize : 0)); in __test_aead()
633 authsize = abs(template[i].rlen - template[i].ilen); in __test_aead()
659 n += authsize; in __test_aead()
666 ret = crypto_aead_setauthsize(tfm, authsize); in __test_aead()
669 d, authsize, j, algo); in __test_aead()
675 sg[k - 1].length + authsize > in __test_aead()
[all …]
Dpcrypt.c110 unsigned int authsize) in pcrypt_aead_setauthsize() argument
114 return crypto_aead_setauthsize(ctx->child, authsize); in pcrypt_aead_setauthsize()
Dtcrypt.c270 unsigned int tcount, u8 authsize, in test_aead_speed() argument
354 ret = crypto_aead_setauthsize(tfm, authsize); in test_aead_speed()
374 *b_size + (enc ? authsize : 0)); in test_aead_speed()
377 *b_size + (enc ? authsize : 0)); in test_aead_speed()