Home
last modified time | relevance | path

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

/linux-4.19.296/crypto/
Dauthencesn.c55 unsigned int authsize) in crypto_authenc_esn_setauthsize() argument
57 if (authsize > 0 && authsize < 4) in crypto_authenc_esn_setauthsize()
110 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv_tail() local
121 scatterwalk_map_and_copy(hash, dst, assoclen + cryptlen, authsize, 1); in crypto_authenc_esn_genicv_tail()
144 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_genicv() local
150 if (!authsize) in crypto_authenc_esn_genicv()
238 unsigned int authsize = crypto_aead_authsize(authenc_esn); in crypto_authenc_esn_decrypt_tail() local
246 unsigned int cryptlen = req->cryptlen - authsize; in crypto_authenc_esn_decrypt_tail()
252 if (!authsize) in crypto_authenc_esn_decrypt_tail()
260 if (crypto_memneq(ihash, ohash, authsize)) in crypto_authenc_esn_decrypt_tail()
[all …]
Daegis128.c346 unsigned int authsize) in crypto_aegis128_setauthsize() argument
348 if (authsize > AEGIS128_MAX_AUTH_SIZE) in crypto_aegis128_setauthsize()
350 if (authsize < AEGIS128_MIN_AUTH_SIZE) in crypto_aegis128_setauthsize()
379 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_encrypt() local
385 authsize, 1); in crypto_aegis128_encrypt()
399 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128_decrypt() local
400 unsigned int cryptlen = req->cryptlen - authsize; in crypto_aegis128_decrypt()
403 authsize, 0); in crypto_aegis128_decrypt()
407 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_aegis128_decrypt()
Daead.c74 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() argument
78 if (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()
107 aead->authsize = alg->maxauthsize; in crypto_aead_init_tfm()
196 unsigned int authsize) in aead_geniv_setauthsize() argument
200 return crypto_aead_setauthsize(ctx->child, authsize); in aead_geniv_setauthsize()
Daegis256.c361 unsigned int authsize) in crypto_aegis256_setauthsize() argument
363 if (authsize > AEGIS256_MAX_AUTH_SIZE) in crypto_aegis256_setauthsize()
365 if (authsize < AEGIS256_MIN_AUTH_SIZE) in crypto_aegis256_setauthsize()
394 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis256_encrypt() local
400 authsize, 1); in crypto_aegis256_encrypt()
414 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis256_decrypt() local
415 unsigned int cryptlen = req->cryptlen - authsize; in crypto_aegis256_decrypt()
418 authsize, 0); in crypto_aegis256_decrypt()
422 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_aegis256_decrypt()
Daegis128l.c410 unsigned int authsize) in crypto_aegis128l_setauthsize() argument
412 if (authsize > AEGIS128L_MAX_AUTH_SIZE) in crypto_aegis128l_setauthsize()
414 if (authsize < AEGIS128L_MIN_AUTH_SIZE) in crypto_aegis128l_setauthsize()
443 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128l_encrypt() local
449 authsize, 1); in crypto_aegis128l_encrypt()
463 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_aegis128l_decrypt() local
464 unsigned int cryptlen = req->cryptlen - authsize; in crypto_aegis128l_decrypt()
467 authsize, 0); in crypto_aegis128l_decrypt()
471 return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_aegis128l_decrypt()
Dmorus640.c420 unsigned int authsize) in crypto_morus640_setauthsize() argument
422 return (authsize <= MORUS_MAX_AUTH_SIZE) ? 0 : -EINVAL; in crypto_morus640_setauthsize()
450 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_morus640_encrypt() local
457 req->assoclen + cryptlen, authsize, 1); in crypto_morus640_encrypt()
472 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_morus640_decrypt() local
473 unsigned int cryptlen = req->cryptlen - authsize; in crypto_morus640_decrypt()
476 req->assoclen + cryptlen, authsize, 0); in crypto_morus640_decrypt()
482 return crypto_memneq(tag_in.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_morus640_decrypt()
Dgcm.c156 unsigned int authsize) in crypto_gcm_setauthsize() argument
158 switch (authsize) { in crypto_gcm_setauthsize()
493 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify() local
494 unsigned int cryptlen = req->cryptlen - authsize; in crypto_gcm_verify()
498 req->assoclen + cryptlen, authsize, 0); in crypto_gcm_verify()
499 return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; in crypto_gcm_verify()
528 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt() local
532 cryptlen -= authsize; in crypto_gcm_decrypt()
777 unsigned int authsize) in crypto_rfc4106_setauthsize() argument
781 switch (authsize) { in crypto_rfc4106_setauthsize()
[all …]
Dmorus1280.c428 unsigned int authsize) in crypto_morus1280_setauthsize() argument
430 return (authsize <= MORUS_MAX_AUTH_SIZE) ? 0 : -EINVAL; in crypto_morus1280_setauthsize()
458 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_morus1280_encrypt() local
465 req->assoclen + cryptlen, authsize, 1); in crypto_morus1280_encrypt()
480 unsigned int authsize = crypto_aead_authsize(tfm); in crypto_morus1280_decrypt() local
481 unsigned int cryptlen = req->cryptlen - authsize; in crypto_morus1280_decrypt()
484 req->assoclen + cryptlen, authsize, 0); in crypto_morus1280_decrypt()
490 return crypto_memneq(tag_in.bytes, zeros, authsize) ? -EBADMSG : 0; in crypto_morus1280_decrypt()
Dauthenc.c255 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt_tail() local
256 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail()
259 scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); in crypto_authenc_decrypt_tail()
261 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
274 req->cryptlen - authsize, req->iv); in crypto_authenc_decrypt_tail()
296 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt() local
311 req->assoclen + req->cryptlen - authsize); in crypto_authenc_decrypt()
Dccm.c119 unsigned int authsize) in crypto_ccm_setauthsize() argument
121 switch (authsize) { in crypto_ccm_setauthsize()
339 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt_done() local
340 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done()
349 if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) in crypto_ccm_decrypt_done()
362 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt() local
369 cryptlen -= authsize; in crypto_ccm_decrypt()
376 authsize, 0); in crypto_ccm_decrypt()
397 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt()
640 unsigned int authsize) in crypto_rfc4309_setauthsize() argument
[all …]
Dtestmgr.c618 unsigned int authsize, iv_len; in __test_aead() local
717 authsize = abs(template[i].rlen - template[i].ilen); in __test_aead()
718 ret = crypto_aead_setauthsize(tfm, authsize); in __test_aead()
721 d, authsize, j, algo); in __test_aead()
729 template[i].ilen + (enc ? authsize : 0)); in __test_aead()
739 template[i].rlen + (enc ? 0 : authsize)); in __test_aead()
816 authsize = abs(template[i].rlen - template[i].ilen); in __test_aead()
864 n += authsize; in __test_aead()
871 ret = crypto_aead_setauthsize(tfm, authsize); in __test_aead()
874 d, authsize, j, algo); in __test_aead()
[all …]
Dtcrypt.c256 unsigned int tcount, u8 authsize, in test_mb_aead_speed() argument
295 ret = crypto_aead_setauthsize(tfm, authsize); in test_mb_aead_speed()
343 if (*b_size + authsize > XBUFSIZE * PAGE_SIZE) { in test_mb_aead_speed()
345 authsize + *b_size, in test_mb_aead_speed()
386 *b_size + (enc ? 0 : authsize), in test_mb_aead_speed()
390 *b_size + (enc ? authsize : 0), in test_mb_aead_speed()
413 (enc ? 0 : authsize), in test_mb_aead_speed()
524 unsigned int tcount, u8 authsize, in test_aead_speed() argument
614 ret = crypto_aead_setauthsize(tfm, authsize); in test_aead_speed()
633 sg_init_aead(sg, xbuf, *b_size + (enc ? 0 : authsize), in test_aead_speed()
[all …]
Dpcrypt.c111 unsigned int authsize) in pcrypt_aead_setauthsize() argument
115 return crypto_aead_setauthsize(ctx->child, authsize); in pcrypt_aead_setauthsize()
Dalgif_aead.c513 static int aead_setauthsize(void *private, unsigned int authsize) in aead_setauthsize() argument
517 return crypto_aead_setauthsize(tfm->aead, authsize); in aead_setauthsize()
Dchacha20poly1305.c522 unsigned int authsize) in chachapoly_setauthsize() argument
524 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
Dcryptd.c943 unsigned int authsize) in cryptd_aead_setauthsize() argument
948 return crypto_aead_setauthsize(child, authsize); in cryptd_aead_setauthsize()
/linux-4.19.296/include/crypto/
Daead.h139 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
155 unsigned int authsize; member
237 return tfm->authsize; in crypto_aead_authsize()
304 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize);
Dmorus640_glue.h51 unsigned int authsize);
58 unsigned int authsize);
Dmorus1280_glue.h51 unsigned int authsize);
58 unsigned int authsize);
Dif_alg.h56 int (*setauthsize)(void *private, unsigned int authsize);
/linux-4.19.296/include/linux/
Dccp.h176 u32 authsize; member