Home
last modified time | relevance | path

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

/crypto/
A Dauthencesn.c48 unsigned int authsize) in crypto_authenc_esn_setauthsize() argument
50 if (authsize > 0 && authsize < 4) in crypto_authenc_esn_setauthsize()
90 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv_tail() local
122 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv() local
128 if (!authsize) in crypto_authenc_esn_genicv()
205 unsigned int cryptlen = req->cryptlen - authsize; in crypto_authenc_esn_decrypt_tail()
211 if (!authsize) in crypto_authenc_esn_decrypt_tail()
219 if (crypto_memneq(ihash, ohash, authsize)) in crypto_authenc_esn_decrypt_tail()
259 cryptlen -= authsize; in crypto_authenc_esn_decrypt()
265 authsize, 0); in crypto_authenc_esn_decrypt()
[all …]
A Daegis128-core.c377 unsigned int authsize) in crypto_aegis128_setauthsize() argument
379 if (authsize > AEGIS128_MAX_AUTH_SIZE) in crypto_aegis128_setauthsize()
381 if (authsize < AEGIS128_MIN_AUTH_SIZE) in crypto_aegis128_setauthsize()
390 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_encrypt_generic() local
404 authsize, 1); in crypto_aegis128_encrypt_generic()
414 unsigned int cryptlen = req->cryptlen - authsize; in crypto_aegis128_decrypt_generic()
420 authsize, 0); in crypto_aegis128_decrypt_generic()
468 authsize, 1); in crypto_aegis128_encrypt_simd()
477 unsigned int cryptlen = req->cryptlen - authsize; in crypto_aegis128_decrypt_simd()
486 authsize, 0); in crypto_aegis128_decrypt_simd()
[all …]
A Daead.c65 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() argument
69 if ((!authsize && crypto_aead_maxauthsize(tfm)) || in crypto_aead_setauthsize()
70 authsize > crypto_aead_maxauthsize(tfm)) in crypto_aead_setauthsize()
74 err = crypto_aead_alg(tfm)->setauthsize(tfm, authsize); in crypto_aead_setauthsize()
79 tfm->authsize = authsize; in crypto_aead_setauthsize()
124 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm()
A Dkrb5enc.c252 unsigned int authsize = crypto_aead_authsize(krb5enc); in krb5enc_verify_hash() local
254 u8 *msg_hash = areq_ctx->tail + authsize; in krb5enc_verify_hash()
256 scatterwalk_map_and_copy(msg_hash, req->src, ahreq->nbytes, authsize, 0); in krb5enc_verify_hash()
258 if (crypto_memneq(msg_hash, calc_hash, authsize)) in krb5enc_verify_hash()
286 unsigned int authsize = crypto_aead_authsize(krb5enc); in krb5enc_dispatch_decrypt_hash() local
292 req->assoclen + req->cryptlen - authsize); in krb5enc_dispatch_decrypt_hash()
315 unsigned int authsize = crypto_aead_authsize(krb5enc); in krb5enc_dispatch_decrypt() local
328 req->cryptlen - authsize, req->iv); in krb5enc_dispatch_decrypt()
A Dgcm.c143 unsigned int authsize) in crypto_gcm_setauthsize() argument
145 return crypto_gcm_check_authsize(authsize); in crypto_gcm_setauthsize()
466 unsigned int cryptlen = req->cryptlen - authsize; in crypto_gcm_verify()
470 req->assoclen + cryptlen, authsize, 0); in crypto_gcm_verify()
504 cryptlen -= authsize; in crypto_gcm_decrypt()
702 unsigned int authsize) in crypto_rfc4106_setauthsize() argument
707 err = crypto_rfc4106_check_authsize(authsize); in crypto_rfc4106_setauthsize()
910 unsigned int authsize) in crypto_rfc4543_setauthsize() argument
914 if (authsize != 16) in crypto_rfc4543_setauthsize()
932 (enc ? 0 : authsize); in crypto_rfc4543_crypt()
[all …]
A Dauthenc.c216 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt_tail() local
217 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail()
220 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail()
222 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
235 req->cryptlen - authsize, req->iv); in crypto_authenc_decrypt_tail()
256 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt() local
268 req->assoclen + req->cryptlen - authsize); in crypto_authenc_decrypt()
A Daegis128-neon.c59 unsigned int authsize) in crypto_aegis128_final_simd() argument
65 authsize); in crypto_aegis128_final_simd()
A Dccm.c106 unsigned int authsize) in crypto_ccm_setauthsize() argument
108 switch (authsize) { in crypto_ccm_setauthsize()
325 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt_done() local
326 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done()
348 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt() local
355 cryptlen -= authsize; in crypto_ccm_decrypt()
362 authsize, 0); in crypto_ccm_decrypt()
383 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt()
582 unsigned int authsize) in crypto_rfc4309_setauthsize() argument
586 switch (authsize) { in crypto_rfc4309_setauthsize()
[all …]
A Dgeniv.c27 unsigned int authsize) in aead_geniv_setauthsize() argument
31 return crypto_aead_setauthsize(ctx->child, authsize); in aead_geniv_setauthsize()
A Daegis-neon.h15 unsigned int authsize);
A Daegis128-neon-inner.c320 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()
A Daegis.h44 unsigned int authsize);
A Dtcrypt.c245 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()
639 bs + (enc ? authsize : 0), assoc, in test_aead_speed()
[all …]
A Dpcrypt.c51 unsigned int authsize) in pcrypt_aead_setauthsize() argument
55 return crypto_aead_setauthsize(ctx->child, authsize); in pcrypt_aead_setauthsize()
A Dalgif_aead.c434 static int aead_setauthsize(void *private, unsigned int authsize) in aead_setauthsize() argument
436 return crypto_aead_setauthsize(private, authsize); in aead_setauthsize()
A Dtestmgr.c2047 const unsigned int authsize = vec->clen - vec->plen; in test_aead_vec_cfg() local
2080 err = crypto_aead_setauthsize(tfm, authsize); in test_aead_vec_cfg()
2288 const unsigned int authsize = vec->clen - vec->plen; in mutate_aead_message() local
2321 const unsigned int authsize = vec->clen - vec->plen; in generate_aead_message() local
2392 unsigned int authsize; in generate_random_aead_testvec() local
2406 authsize = maxauthsize; in generate_random_aead_testvec()
2410 authsize = MIN_COLLISION_FREE_AUTHSIZE; in generate_random_aead_testvec()
2411 if (WARN_ON(authsize > maxdatasize)) in generate_random_aead_testvec()
2412 authsize = maxdatasize; in generate_random_aead_testvec()
2413 maxdatasize -= authsize; in generate_random_aead_testvec()
[all …]
A Dsimd.c280 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize() argument
285 return crypto_aead_setauthsize(child, authsize); in simd_aead_setauthsize()
A Dchacha20poly1305.c321 unsigned int authsize) in chachapoly_setauthsize() argument
323 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
A Dessiv.c127 unsigned int authsize) in essiv_aead_setauthsize() argument
131 return crypto_aead_setauthsize(tctx->u.aead, authsize); in essiv_aead_setauthsize()
A Dcryptd.c735 unsigned int authsize) in cryptd_aead_setauthsize() argument
740 return crypto_aead_setauthsize(child, authsize); in cryptd_aead_setauthsize()

Completed in 44 milliseconds