/linux-4.19.296/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() 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 …]
|
D | aegis128.c | 346 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()
|
D | aead.c | 74 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()
|
D | aegis256.c | 361 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()
|
D | aegis128l.c | 410 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()
|
D | morus640.c | 420 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()
|
D | gcm.c | 156 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 …]
|
D | morus1280.c | 428 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()
|
D | authenc.c | 255 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()
|
D | ccm.c | 119 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 …]
|
D | testmgr.c | 618 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 …]
|
D | tcrypt.c | 256 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 …]
|
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 | algif_aead.c | 513 static int aead_setauthsize(void *private, unsigned int authsize) in aead_setauthsize() argument 517 return crypto_aead_setauthsize(tfm->aead, authsize); in aead_setauthsize()
|
D | chacha20poly1305.c | 522 unsigned int authsize) in chachapoly_setauthsize() argument 524 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
|
D | cryptd.c | 943 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/ |
D | aead.h | 139 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);
|
D | morus640_glue.h | 51 unsigned int authsize); 58 unsigned int authsize);
|
D | morus1280_glue.h | 51 unsigned int authsize); 58 unsigned int authsize);
|
D | if_alg.h | 56 int (*setauthsize)(void *private, unsigned int authsize);
|
/linux-4.19.296/include/linux/ |
D | ccp.h | 176 u32 authsize; member
|