authsize 60 arch/arm64/crypto/aes-ce-ccm-glue.c static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) authsize 62 arch/arm64/crypto/aes-ce-ccm-glue.c if ((authsize & 1) || authsize < 4) authsize 289 arch/arm64/crypto/aes-ce-ccm-glue.c unsigned int authsize = crypto_aead_authsize(aead); authsize 293 arch/arm64/crypto/aes-ce-ccm-glue.c u32 len = req->cryptlen - authsize; authsize 339 arch/arm64/crypto/aes-ce-ccm-glue.c req->assoclen + req->cryptlen - authsize, authsize 340 arch/arm64/crypto/aes-ce-ccm-glue.c authsize, 0); authsize 342 arch/arm64/crypto/aes-ce-ccm-glue.c if (crypto_memneq(mac, buf, authsize)) authsize 321 arch/arm64/crypto/ghash-ce-glue.c static int gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) authsize 323 arch/arm64/crypto/ghash-ce-glue.c switch (authsize) { authsize 542 arch/arm64/crypto/ghash-ce-glue.c unsigned int authsize = crypto_aead_authsize(aead); authsize 664 arch/arm64/crypto/ghash-ce-glue.c gcm_final(req, ctx, dg, tag, req->cryptlen - authsize); authsize 668 arch/arm64/crypto/ghash-ce-glue.c req->assoclen + req->cryptlen - authsize, authsize 669 arch/arm64/crypto/ghash-ce-glue.c authsize, 0); authsize 671 arch/arm64/crypto/ghash-ce-glue.c if (crypto_memneq(tag, buf, authsize)) authsize 817 arch/s390/crypto/aes_s390.c static int gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize) authsize 819 arch/s390/crypto/aes_s390.c switch (authsize) { authsize 158 arch/x86/crypto/aegis128-aesni-glue.c unsigned int authsize) authsize 160 arch/x86/crypto/aegis128-aesni-glue.c if (authsize > AEGIS128_MAX_AUTH_SIZE) authsize 162 arch/x86/crypto/aegis128-aesni-glue.c if (authsize < AEGIS128_MIN_AUTH_SIZE) authsize 199 arch/x86/crypto/aegis128-aesni-glue.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 205 arch/x86/crypto/aegis128-aesni-glue.c req->assoclen + cryptlen, authsize, 1); authsize 221 arch/x86/crypto/aegis128-aesni-glue.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 222 arch/x86/crypto/aegis128-aesni-glue.c unsigned int cryptlen = req->cryptlen - authsize; authsize 225 arch/x86/crypto/aegis128-aesni-glue.c req->assoclen + cryptlen, authsize, 0); authsize 229 arch/x86/crypto/aegis128-aesni-glue.c return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; authsize 670 arch/x86/crypto/aesni-intel_glue.c unsigned int authsize) authsize 672 arch/x86/crypto/aesni-intel_glue.c switch (authsize) { authsize 685 arch/x86/crypto/aesni-intel_glue.c unsigned int authsize) authsize 687 arch/x86/crypto/aesni-intel_glue.c switch (authsize) { authsize 69 crypto/aead.c int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) authsize 73 crypto/aead.c if ((!authsize && crypto_aead_maxauthsize(tfm)) || authsize 74 crypto/aead.c authsize > crypto_aead_maxauthsize(tfm)) authsize 78 crypto/aead.c err = crypto_aead_alg(tfm)->setauthsize(tfm, authsize); authsize 83 crypto/aead.c tfm->authsize = authsize; authsize 139 crypto/aead.c aead->authsize = alg->maxauthsize; authsize 224 crypto/aead.c unsigned int authsize) authsize 228 crypto/aead.c return crypto_aead_setauthsize(ctx->child, authsize); authsize 384 crypto/aegis128-core.c unsigned int authsize) authsize 386 crypto/aegis128-core.c if (authsize > AEGIS128_MAX_AUTH_SIZE) authsize 388 crypto/aegis128-core.c if (authsize < AEGIS128_MIN_AUTH_SIZE) authsize 417 crypto/aegis128-core.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 428 crypto/aegis128-core.c authsize, 1); authsize 442 crypto/aegis128-core.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 443 crypto/aegis128-core.c unsigned int cryptlen = req->cryptlen - authsize; authsize 446 crypto/aegis128-core.c authsize, 0); authsize 455 crypto/aegis128-core.c return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; authsize 511 crypto/algif_aead.c static int aead_setauthsize(void *private, unsigned int authsize) authsize 515 crypto/algif_aead.c return crypto_aead_setauthsize(tfm->aead, authsize); authsize 250 crypto/authenc.c unsigned int authsize = crypto_aead_authsize(authenc); authsize 251 crypto/authenc.c u8 *ihash = ahreq->result + authsize; authsize 254 crypto/authenc.c scatterwalk_map_and_copy(ihash, req->src, ahreq->nbytes, authsize, 0); authsize 256 crypto/authenc.c if (crypto_memneq(ihash, ahreq->result, authsize)) authsize 269 crypto/authenc.c req->cryptlen - authsize, req->iv); authsize 291 crypto/authenc.c unsigned int authsize = crypto_aead_authsize(authenc); authsize 306 crypto/authenc.c req->assoclen + req->cryptlen - authsize); authsize 50 crypto/authencesn.c unsigned int authsize) authsize 52 crypto/authencesn.c if (authsize > 0 && authsize < 4) authsize 105 crypto/authencesn.c unsigned int authsize = crypto_aead_authsize(authenc_esn); authsize 116 crypto/authencesn.c scatterwalk_map_and_copy(hash, dst, assoclen + cryptlen, authsize, 1); authsize 139 crypto/authencesn.c unsigned int authsize = crypto_aead_authsize(authenc_esn); authsize 145 crypto/authencesn.c if (!authsize) authsize 233 crypto/authencesn.c unsigned int authsize = crypto_aead_authsize(authenc_esn); authsize 241 crypto/authencesn.c unsigned int cryptlen = req->cryptlen - authsize; authsize 247 crypto/authencesn.c if (!authsize) authsize 255 crypto/authencesn.c if (crypto_memneq(ihash, ohash, authsize)) authsize 286 crypto/authencesn.c unsigned int authsize = crypto_aead_authsize(authenc_esn); authsize 297 crypto/authencesn.c cryptlen -= authsize; authsize 306 crypto/authencesn.c authsize, 0); authsize 308 crypto/authencesn.c if (!authsize) authsize 117 crypto/ccm.c unsigned int authsize) authsize 119 crypto/ccm.c switch (authsize) { authsize 337 crypto/ccm.c unsigned int authsize = crypto_aead_authsize(aead); authsize 338 crypto/ccm.c unsigned int cryptlen = req->cryptlen - authsize; authsize 347 crypto/ccm.c if (!err && crypto_memneq(pctx->auth_tag, pctx->odata, authsize)) authsize 360 crypto/ccm.c unsigned int authsize = crypto_aead_authsize(aead); authsize 367 crypto/ccm.c cryptlen -= authsize; authsize 374 crypto/ccm.c authsize, 0); authsize 395 crypto/ccm.c if (crypto_memneq(authtag, odata, authsize)) authsize 626 crypto/ccm.c unsigned int authsize) authsize 630 crypto/ccm.c switch (authsize) { authsize 639 crypto/ccm.c return crypto_aead_setauthsize(ctx->child, authsize); authsize 499 crypto/chacha20poly1305.c unsigned int authsize) authsize 501 crypto/chacha20poly1305.c if (authsize != POLY1305_DIGEST_SIZE) authsize 744 crypto/cryptd.c unsigned int authsize) authsize 749 crypto/cryptd.c return crypto_aead_setauthsize(child, authsize); authsize 144 crypto/essiv.c unsigned int authsize) authsize 148 crypto/essiv.c return crypto_aead_setauthsize(tctx->u.aead, authsize); authsize 153 crypto/gcm.c unsigned int authsize) authsize 155 crypto/gcm.c return crypto_gcm_check_authsize(authsize); authsize 477 crypto/gcm.c unsigned int authsize = crypto_aead_authsize(aead); authsize 478 crypto/gcm.c unsigned int cryptlen = req->cryptlen - authsize; authsize 482 crypto/gcm.c req->assoclen + cryptlen, authsize, 0); authsize 483 crypto/gcm.c return crypto_memneq(iauth_tag, auth_tag, authsize) ? -EBADMSG : 0; authsize 512 crypto/gcm.c unsigned int authsize = crypto_aead_authsize(aead); authsize 516 crypto/gcm.c cryptlen -= authsize; authsize 749 crypto/gcm.c unsigned int authsize) authsize 754 crypto/gcm.c err = crypto_rfc4106_check_authsize(authsize); authsize 758 crypto/gcm.c return crypto_aead_setauthsize(ctx->child, authsize); authsize 978 crypto/gcm.c unsigned int authsize) authsize 982 crypto/gcm.c if (authsize != 16) authsize 985 crypto/gcm.c return crypto_aead_setauthsize(ctx->child, authsize); authsize 994 crypto/gcm.c unsigned int authsize = crypto_aead_authsize(aead); authsize 1012 crypto/gcm.c enc ? 0 : authsize, iv); authsize 1023 crypto/gcm.c unsigned int authsize = crypto_aead_authsize(aead); authsize 1025 crypto/gcm.c (enc ? 0 : authsize); authsize 52 crypto/pcrypt.c unsigned int authsize) authsize 56 crypto/pcrypt.c return crypto_aead_setauthsize(ctx->child, authsize); authsize 309 crypto/simd.c static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) authsize 314 crypto/simd.c return crypto_aead_setauthsize(child, authsize); authsize 252 crypto/tcrypt.c unsigned int tcount, u8 authsize, authsize 291 crypto/tcrypt.c ret = crypto_aead_setauthsize(tfm, authsize); authsize 339 crypto/tcrypt.c if (*b_size + authsize > XBUFSIZE * PAGE_SIZE) { authsize 341 crypto/tcrypt.c authsize + *b_size, authsize 382 crypto/tcrypt.c *b_size + (enc ? 0 : authsize), authsize 386 crypto/tcrypt.c *b_size + (enc ? authsize : 0), authsize 409 crypto/tcrypt.c (enc ? 0 : authsize), authsize 520 crypto/tcrypt.c unsigned int tcount, u8 authsize, authsize 610 crypto/tcrypt.c ret = crypto_aead_setauthsize(tfm, authsize); authsize 629 crypto/tcrypt.c sg_init_aead(sg, xbuf, *b_size + (enc ? 0 : authsize), authsize 633 crypto/tcrypt.c *b_size + (enc ? authsize : 0), assoc, authsize 658 crypto/tcrypt.c *b_size + (enc ? 0 : authsize), authsize 1847 crypto/testmgr.c const unsigned int authsize = vec->clen - vec->plen; authsize 1878 crypto/testmgr.c err = crypto_aead_setauthsize(tfm, authsize); authsize 2063 crypto/testmgr.c unsigned int authsize; authsize 2081 crypto/testmgr.c authsize = maxauthsize; authsize 2083 crypto/testmgr.c authsize = prandom_u32() % (maxauthsize + 1); authsize 2084 crypto/testmgr.c if (WARN_ON(authsize > maxdatasize)) authsize 2085 crypto/testmgr.c authsize = maxdatasize; authsize 2086 crypto/testmgr.c maxdatasize -= authsize; authsize 2087 crypto/testmgr.c vec->setauthsize_error = crypto_aead_setauthsize(tfm, authsize); authsize 2099 crypto/testmgr.c vec->clen = vec->plen + authsize; authsize 2127 crypto/testmgr.c vec->alen, vec->plen, authsize, vec->klen); authsize 341 drivers/crypto/amcc/crypto4xx_alg.c if (aead->authsize & 3) authsize 503 drivers/crypto/amcc/crypto4xx_alg.c unsigned int authsize) authsize 508 drivers/crypto/amcc/crypto4xx_alg.c return crypto_aead_setauthsize(ctx->sw_cipher.aead, authsize); authsize 234 drivers/crypto/amcc/crypto4xx_core.h unsigned int authsize); authsize 1570 drivers/crypto/atmel-aes.c u32 authsize; authsize 1573 drivers/crypto/atmel-aes.c authsize = crypto_aead_authsize(tfm); authsize 1574 drivers/crypto/atmel-aes.c ctx->textlen = req->cryptlen - (enc ? 0 : authsize); authsize 1721 drivers/crypto/atmel-aes.c u32 offset, authsize, itag[4], *otag = ctx->tag; authsize 1731 drivers/crypto/atmel-aes.c authsize = crypto_aead_authsize(tfm); authsize 1733 drivers/crypto/atmel-aes.c scatterwalk_map_and_copy(otag, req->dst, offset, authsize, 1); authsize 1736 drivers/crypto/atmel-aes.c scatterwalk_map_and_copy(itag, req->src, offset, authsize, 0); authsize 1737 drivers/crypto/atmel-aes.c err = crypto_memneq(itag, otag, authsize) ? -EBADMSG : 0; authsize 1783 drivers/crypto/atmel-aes.c unsigned int authsize) authsize 1786 drivers/crypto/atmel-aes.c switch (authsize) { authsize 2097 drivers/crypto/atmel-aes.c u32 offs, authsize; authsize 2105 drivers/crypto/atmel-aes.c authsize = crypto_aead_authsize(tfm); authsize 2107 drivers/crypto/atmel-aes.c scatterwalk_map_and_copy(odigest, req->dst, offs, authsize, 1); authsize 2109 drivers/crypto/atmel-aes.c scatterwalk_map_and_copy(idigest, req->src, offs, authsize, 0); authsize 2110 drivers/crypto/atmel-aes.c if (crypto_memneq(idigest, odigest, authsize)) authsize 2211 drivers/crypto/atmel-aes.c u32 authsize = crypto_aead_authsize(tfm); authsize 2216 drivers/crypto/atmel-aes.c if (!enc && req->cryptlen < authsize) authsize 2218 drivers/crypto/atmel-aes.c rctx->textlen = req->cryptlen - (enc ? 0 : authsize); authsize 2016 drivers/crypto/axis/artpec6_crypto.c size_t authsize = crypto_aead_authsize(cipher); authsize 2019 drivers/crypto/axis/artpec6_crypto.c authsize); authsize 2023 drivers/crypto/axis/artpec6_crypto.c if (authsize < AES_BLOCK_SIZE) { authsize 2024 drivers/crypto/axis/artpec6_crypto.c count = AES_BLOCK_SIZE - authsize; authsize 2196 drivers/crypto/axis/artpec6_crypto.c unsigned int authsize = crypto_aead_authsize(aead); authsize 2201 drivers/crypto/axis/artpec6_crypto.c authsize, authsize 2203 drivers/crypto/axis/artpec6_crypto.c authsize); authsize 2207 drivers/crypto/axis/artpec6_crypto.c authsize)) { authsize 2210 drivers/crypto/axis/artpec6_crypto.c input_tag, authsize, true); authsize 2213 drivers/crypto/axis/artpec6_crypto.c authsize, true); authsize 3083 drivers/crypto/bcm/cipher.c static int aead_setauthsize(struct crypto_aead *cipher, unsigned int authsize) authsize 3089 drivers/crypto/bcm/cipher.c __func__, ctx->authkeylen, authsize); authsize 3091 drivers/crypto/bcm/cipher.c ctx->digestsize = authsize; authsize 3097 drivers/crypto/bcm/cipher.c ret = crypto_aead_setauthsize(ctx->fallback_cipher, authsize); authsize 114 drivers/crypto/caam/caamalg.c unsigned int authsize; authsize 140 drivers/crypto/caam/caamalg.c cnstr_shdsc_aead_null_encap(desc, &ctx->adata, ctx->authsize, authsize 159 drivers/crypto/caam/caamalg.c cnstr_shdsc_aead_null_decap(desc, &ctx->adata, ctx->authsize, authsize 183 drivers/crypto/caam/caamalg.c if (!ctx->authsize) authsize 242 drivers/crypto/caam/caamalg.c ctx->authsize, is_rfc3686, nonce, ctx1_iv_off, authsize 264 drivers/crypto/caam/caamalg.c ctx->authsize, alg->caam.geniv, is_rfc3686, authsize 288 drivers/crypto/caam/caamalg.c ctx->authsize, is_rfc3686, nonce, authsize 298 drivers/crypto/caam/caamalg.c unsigned int authsize) authsize 302 drivers/crypto/caam/caamalg.c ctx->authsize = authsize; authsize 317 drivers/crypto/caam/caamalg.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 334 drivers/crypto/caam/caamalg.c cnstr_shdsc_gcm_encap(desc, &ctx->cdata, ivsize, ctx->authsize, false); authsize 351 drivers/crypto/caam/caamalg.c cnstr_shdsc_gcm_decap(desc, &ctx->cdata, ivsize, ctx->authsize, false); authsize 358 drivers/crypto/caam/caamalg.c static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) authsize 363 drivers/crypto/caam/caamalg.c err = crypto_gcm_check_authsize(authsize); authsize 367 drivers/crypto/caam/caamalg.c ctx->authsize = authsize; authsize 382 drivers/crypto/caam/caamalg.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 399 drivers/crypto/caam/caamalg.c cnstr_shdsc_rfc4106_encap(desc, &ctx->cdata, ivsize, ctx->authsize, authsize 417 drivers/crypto/caam/caamalg.c cnstr_shdsc_rfc4106_decap(desc, &ctx->cdata, ivsize, ctx->authsize, authsize 426 drivers/crypto/caam/caamalg.c unsigned int authsize) authsize 431 drivers/crypto/caam/caamalg.c err = crypto_rfc4106_check_authsize(authsize); authsize 435 drivers/crypto/caam/caamalg.c ctx->authsize = authsize; authsize 450 drivers/crypto/caam/caamalg.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 467 drivers/crypto/caam/caamalg.c cnstr_shdsc_rfc4543_encap(desc, &ctx->cdata, ivsize, ctx->authsize, authsize 485 drivers/crypto/caam/caamalg.c cnstr_shdsc_rfc4543_decap(desc, &ctx->cdata, ivsize, ctx->authsize, authsize 494 drivers/crypto/caam/caamalg.c unsigned int authsize) authsize 498 drivers/crypto/caam/caamalg.c if (authsize != 16) authsize 501 drivers/crypto/caam/caamalg.c ctx->authsize = authsize; authsize 514 drivers/crypto/caam/caamalg.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 519 drivers/crypto/caam/caamalg.c ctx->authsize, true, false); authsize 525 drivers/crypto/caam/caamalg.c ctx->authsize, false, false); authsize 533 drivers/crypto/caam/caamalg.c unsigned int authsize) authsize 537 drivers/crypto/caam/caamalg.c if (authsize != POLY1305_DIGEST_SIZE) authsize 540 drivers/crypto/caam/caamalg.c ctx->authsize = authsize; authsize 1094 drivers/crypto/caam/caamalg.c int authsize = ctx->authsize; authsize 1141 drivers/crypto/caam/caamalg.c req->assoclen + req->cryptlen + authsize, authsize 1145 drivers/crypto/caam/caamalg.c req->assoclen + req->cryptlen - authsize, authsize 1334 drivers/crypto/caam/caamalg.c unsigned int authsize = ctx->authsize; authsize 1338 drivers/crypto/caam/caamalg.c dst_len = src_len + (encrypt ? authsize : (-authsize)); authsize 1355 drivers/crypto/caam/caamalg.c (encrypt ? authsize : 0); authsize 66 drivers/crypto/caam/caamalg_qi.c unsigned int authsize; authsize 87 drivers/crypto/caam/caamalg_qi.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 137 drivers/crypto/caam/caamalg_qi.c ivsize, ctx->authsize, is_rfc3686, nonce, authsize 152 drivers/crypto/caam/caamalg_qi.c ivsize, ctx->authsize, alg->caam.geniv, authsize 170 drivers/crypto/caam/caamalg_qi.c ivsize, ctx->authsize, is_rfc3686, nonce, authsize 177 drivers/crypto/caam/caamalg_qi.c static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) authsize 181 drivers/crypto/caam/caamalg_qi.c ctx->authsize = authsize; authsize 300 drivers/crypto/caam/caamalg_qi.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 316 drivers/crypto/caam/caamalg_qi.c ctx->authsize, true); authsize 331 drivers/crypto/caam/caamalg_qi.c ctx->authsize, true); authsize 336 drivers/crypto/caam/caamalg_qi.c static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) authsize 341 drivers/crypto/caam/caamalg_qi.c err = crypto_gcm_check_authsize(authsize); authsize 345 drivers/crypto/caam/caamalg_qi.c ctx->authsize = authsize; authsize 405 drivers/crypto/caam/caamalg_qi.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 422 drivers/crypto/caam/caamalg_qi.c ctx->authsize, true); authsize 436 drivers/crypto/caam/caamalg_qi.c ctx->authsize, true); authsize 442 drivers/crypto/caam/caamalg_qi.c unsigned int authsize) authsize 447 drivers/crypto/caam/caamalg_qi.c err = crypto_rfc4106_check_authsize(authsize); authsize 451 drivers/crypto/caam/caamalg_qi.c ctx->authsize = authsize; authsize 515 drivers/crypto/caam/caamalg_qi.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 532 drivers/crypto/caam/caamalg_qi.c ctx->authsize, true); authsize 546 drivers/crypto/caam/caamalg_qi.c ctx->authsize, true); authsize 552 drivers/crypto/caam/caamalg_qi.c unsigned int authsize) authsize 556 drivers/crypto/caam/caamalg_qi.c if (authsize != 16) authsize 559 drivers/crypto/caam/caamalg_qi.c ctx->authsize = authsize; authsize 953 drivers/crypto/caam/caamalg_qi.c unsigned int authsize = ctx->authsize; authsize 972 drivers/crypto/caam/caamalg_qi.c (encrypt ? authsize : 0); authsize 991 drivers/crypto/caam/caamalg_qi.c dst_len = src_len + (encrypt ? authsize : (-authsize)); authsize 1133 drivers/crypto/caam/caamalg_qi.c (encrypt ? ctx->authsize : (-ctx->authsize)); authsize 82 drivers/crypto/caam/caamalg_qi2.c unsigned int authsize; authsize 181 drivers/crypto/caam/caamalg_qi2.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 233 drivers/crypto/caam/caamalg_qi2.c ivsize, ctx->authsize, is_rfc3686, authsize 238 drivers/crypto/caam/caamalg_qi2.c ivsize, ctx->authsize, is_rfc3686, nonce, authsize 259 drivers/crypto/caam/caamalg_qi2.c ivsize, ctx->authsize, alg->caam.geniv, authsize 270 drivers/crypto/caam/caamalg_qi2.c static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) authsize 274 drivers/crypto/caam/caamalg_qi2.c ctx->authsize = authsize; authsize 365 drivers/crypto/caam/caamalg_qi2.c unsigned int authsize = ctx->authsize; authsize 379 drivers/crypto/caam/caamalg_qi2.c dst_len = src_len + (encrypt ? authsize : (-authsize)); authsize 424 drivers/crypto/caam/caamalg_qi2.c (encrypt ? authsize : 0); authsize 545 drivers/crypto/caam/caamalg_qi2.c (encrypt ? ctx->authsize : (-ctx->authsize)); authsize 594 drivers/crypto/caam/caamalg_qi2.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 600 drivers/crypto/caam/caamalg_qi2.c ctx->authsize, true, true); authsize 609 drivers/crypto/caam/caamalg_qi2.c ctx->authsize, false, true); authsize 619 drivers/crypto/caam/caamalg_qi2.c unsigned int authsize) authsize 623 drivers/crypto/caam/caamalg_qi2.c if (authsize != POLY1305_DIGEST_SIZE) authsize 626 drivers/crypto/caam/caamalg_qi2.c ctx->authsize = authsize; authsize 658 drivers/crypto/caam/caamalg_qi2.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 676 drivers/crypto/caam/caamalg_qi2.c cnstr_shdsc_gcm_encap(desc, &ctx->cdata, ivsize, ctx->authsize, true); authsize 696 drivers/crypto/caam/caamalg_qi2.c cnstr_shdsc_gcm_decap(desc, &ctx->cdata, ivsize, ctx->authsize, true); authsize 705 drivers/crypto/caam/caamalg_qi2.c static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) authsize 710 drivers/crypto/caam/caamalg_qi2.c err = crypto_gcm_check_authsize(authsize); authsize 714 drivers/crypto/caam/caamalg_qi2.c ctx->authsize = authsize; authsize 752 drivers/crypto/caam/caamalg_qi2.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 771 drivers/crypto/caam/caamalg_qi2.c cnstr_shdsc_rfc4106_encap(desc, &ctx->cdata, ivsize, ctx->authsize, authsize 791 drivers/crypto/caam/caamalg_qi2.c cnstr_shdsc_rfc4106_decap(desc, &ctx->cdata, ivsize, ctx->authsize, authsize 802 drivers/crypto/caam/caamalg_qi2.c unsigned int authsize) authsize 807 drivers/crypto/caam/caamalg_qi2.c err = crypto_rfc4106_check_authsize(authsize); authsize 811 drivers/crypto/caam/caamalg_qi2.c ctx->authsize = authsize; authsize 855 drivers/crypto/caam/caamalg_qi2.c if (!ctx->cdata.keylen || !ctx->authsize) authsize 874 drivers/crypto/caam/caamalg_qi2.c cnstr_shdsc_rfc4543_encap(desc, &ctx->cdata, ivsize, ctx->authsize, authsize 894 drivers/crypto/caam/caamalg_qi2.c cnstr_shdsc_rfc4543_decap(desc, &ctx->cdata, ivsize, ctx->authsize, authsize 905 drivers/crypto/caam/caamalg_qi2.c unsigned int authsize) authsize 909 drivers/crypto/caam/caamalg_qi2.c if (authsize != 16) authsize 912 drivers/crypto/caam/caamalg_qi2.c ctx->authsize = authsize; authsize 62 drivers/crypto/cavium/nitrox/nitrox_aead.c unsigned int authsize) authsize 69 drivers/crypto/cavium/nitrox/nitrox_aead.c flags.w0.mac_len = authsize; authsize 72 drivers/crypto/cavium/nitrox/nitrox_aead.c aead->authsize = authsize; authsize 203 drivers/crypto/cavium/nitrox/nitrox_aead.c rctx->dstlen = rctx->srclen + aead->authsize; authsize 231 drivers/crypto/cavium/nitrox/nitrox_aead.c rctx->cryptlen = areq->cryptlen - aead->authsize; authsize 234 drivers/crypto/cavium/nitrox/nitrox_aead.c rctx->dstlen = rctx->srclen - aead->authsize; authsize 349 drivers/crypto/cavium/nitrox/nitrox_aead.c unsigned int authsize) authsize 351 drivers/crypto/cavium/nitrox/nitrox_aead.c switch (authsize) { authsize 360 drivers/crypto/cavium/nitrox/nitrox_aead.c return nitrox_aead_setauthsize(aead, authsize); authsize 422 drivers/crypto/cavium/nitrox/nitrox_aead.c aead_rctx->dstlen = aead_rctx->srclen + aead->authsize; authsize 451 drivers/crypto/cavium/nitrox/nitrox_aead.c aead_rctx->cryptlen = areq->cryptlen - aead->authsize; authsize 455 drivers/crypto/cavium/nitrox/nitrox_aead.c aead_rctx->dstlen = aead_rctx->srclen - aead->authsize; authsize 59 drivers/crypto/ccp/ccp-crypto-aes-galois.c unsigned int authsize) authsize 61 drivers/crypto/ccp/ccp-crypto-aes-galois.c switch (authsize) { authsize 120 drivers/crypto/ccp/ccp-crypto-aes-galois.c rctx->cmd.u.aes.authsize = crypto_aead_authsize(tfm); authsize 623 drivers/crypto/ccp/ccp-ops.c unsigned int authsize; authsize 646 drivers/crypto/ccp/ccp-ops.c authsize = aes->authsize ? aes->authsize : AES_BLOCK_SIZE; authsize 647 drivers/crypto/ccp/ccp-ops.c switch (authsize) { authsize 674 drivers/crypto/ccp/ccp-ops.c ilen = aes->src_len - authsize; authsize 855 drivers/crypto/ccp/ccp-ops.c ccp_get_dm_area(&final_wa, 0, p_tag, 0, authsize); authsize 858 drivers/crypto/ccp/ccp-ops.c ret = ccp_init_dm_workarea(&tag, cmd_q, authsize, authsize 862 drivers/crypto/ccp/ccp-ops.c ret = ccp_set_dm_area(&tag, 0, p_tag, 0, authsize); authsize 867 drivers/crypto/ccp/ccp-ops.c authsize) ? -EBADMSG : 0; authsize 56 drivers/crypto/ccree/cc_aead.c unsigned int authsize; /* Actual (reduced?) size of the MAC/ICv */ authsize 233 drivers/crypto/ccree/cc_aead.c ctx->authsize) != 0) { authsize 235 drivers/crypto/ccree/cc_aead.c ctx->authsize, ctx->cipher_mode); authsize 248 drivers/crypto/ccree/cc_aead.c skip, (skip + ctx->authsize), authsize 680 drivers/crypto/ccree/cc_aead.c unsigned int authsize) authsize 686 drivers/crypto/ccree/cc_aead.c if (authsize == 0 || authsize 687 drivers/crypto/ccree/cc_aead.c authsize > crypto_aead_maxauthsize(authenc)) { authsize 691 drivers/crypto/ccree/cc_aead.c ctx->authsize = authsize; authsize 692 drivers/crypto/ccree/cc_aead.c dev_dbg(dev, "authlen=%d\n", ctx->authsize); authsize 698 drivers/crypto/ccree/cc_aead.c unsigned int authsize) authsize 700 drivers/crypto/ccree/cc_aead.c switch (authsize) { authsize 709 drivers/crypto/ccree/cc_aead.c return cc_aead_setauthsize(authenc, authsize); authsize 713 drivers/crypto/ccree/cc_aead.c unsigned int authsize) authsize 715 drivers/crypto/ccree/cc_aead.c switch (authsize) { authsize 728 drivers/crypto/ccree/cc_aead.c return cc_aead_setauthsize(authenc, authsize); authsize 897 drivers/crypto/ccree/cc_aead.c set_dout_dlli(&desc[idx], req_ctx->icv_dma_addr, ctx->authsize, authsize 914 drivers/crypto/ccree/cc_aead.c ctx->authsize, NS_BIT, 1); authsize 1329 drivers/crypto/ccree/cc_aead.c (req->cryptlen - ctx->authsize) : req->cryptlen; authsize 1332 drivers/crypto/ccree/cc_aead.c req->cryptlen < ctx->authsize) authsize 1504 drivers/crypto/ccree/cc_aead.c set_dout_dlli(&desc[idx], req_ctx->mac_buf_dma_addr, ctx->authsize, authsize 1531 drivers/crypto/ccree/cc_aead.c ctx->authsize, NS_BIT); authsize 1532 drivers/crypto/ccree/cc_aead.c set_dout_dlli(&desc[idx], mac_result, ctx->authsize, NS_BIT, 1); authsize 1553 drivers/crypto/ccree/cc_aead.c unsigned int m = ctx->authsize; /* This is M' of RFC 3610. */ authsize 1560 drivers/crypto/ccree/cc_aead.c (req->cryptlen - ctx->authsize); authsize 1795 drivers/crypto/ccree/cc_aead.c set_dout_dlli(&desc[idx], mac_result, ctx->authsize, NS_BIT, 1); authsize 1850 drivers/crypto/ccree/cc_aead.c (req->cryptlen - ctx->authsize); authsize 1854 drivers/crypto/ccree/cc_aead.c __func__, cryptlen, req_ctx->assoclen, ctx->authsize); authsize 1937 drivers/crypto/ccree/cc_aead.c areq_ctx->req_authsize = ctx->authsize; authsize 2173 drivers/crypto/ccree/cc_aead.c unsigned int authsize) authsize 2175 drivers/crypto/ccree/cc_aead.c switch (authsize) { authsize 2188 drivers/crypto/ccree/cc_aead.c return cc_aead_setauthsize(authenc, authsize); authsize 2192 drivers/crypto/ccree/cc_aead.c unsigned int authsize) authsize 2197 drivers/crypto/ccree/cc_aead.c dev_dbg(dev, "authsize %d\n", authsize); authsize 2199 drivers/crypto/ccree/cc_aead.c switch (authsize) { authsize 2208 drivers/crypto/ccree/cc_aead.c return cc_aead_setauthsize(authenc, authsize); authsize 2212 drivers/crypto/ccree/cc_aead.c unsigned int authsize) authsize 2217 drivers/crypto/ccree/cc_aead.c dev_dbg(dev, "authsize %d\n", authsize); authsize 2219 drivers/crypto/ccree/cc_aead.c if (authsize != 16) authsize 2222 drivers/crypto/ccree/cc_aead.c return cc_aead_setauthsize(authenc, authsize); authsize 568 drivers/crypto/ccree/cc_buffer_mgr.c static bool cc_is_icv_frag(unsigned int sgl_nents, unsigned int authsize, authsize 571 drivers/crypto/ccree/cc_buffer_mgr.c return ((sgl_nents > 1) && (last_entry_data_size < authsize)); authsize 704 drivers/crypto/ccree/cc_buffer_mgr.c unsigned int authsize = areq_ctx->req_authsize; authsize 712 drivers/crypto/ccree/cc_buffer_mgr.c offset = *src_last_bytes - authsize; authsize 715 drivers/crypto/ccree/cc_buffer_mgr.c offset = *dst_last_bytes - authsize; authsize 730 drivers/crypto/ccree/cc_buffer_mgr.c unsigned int authsize = areq_ctx->req_authsize; authsize 742 drivers/crypto/ccree/cc_buffer_mgr.c cc_is_icv_frag(areq_ctx->src.nents, authsize, authsize 769 drivers/crypto/ccree/cc_buffer_mgr.c (*src_last_bytes - authsize); authsize 771 drivers/crypto/ccree/cc_buffer_mgr.c (*src_last_bytes - authsize); authsize 786 drivers/crypto/ccree/cc_buffer_mgr.c cc_is_icv_frag(areq_ctx->src.nents, authsize, authsize 801 drivers/crypto/ccree/cc_buffer_mgr.c (*src_last_bytes - authsize); authsize 803 drivers/crypto/ccree/cc_buffer_mgr.c (*src_last_bytes - authsize); authsize 818 drivers/crypto/ccree/cc_buffer_mgr.c cc_is_icv_frag(areq_ctx->dst.nents, authsize, authsize 825 drivers/crypto/ccree/cc_buffer_mgr.c (*dst_last_bytes - authsize); authsize 827 drivers/crypto/ccree/cc_buffer_mgr.c (*dst_last_bytes - authsize); authsize 843 drivers/crypto/ccree/cc_buffer_mgr.c unsigned int authsize = areq_ctx->req_authsize; authsize 871 drivers/crypto/ccree/cc_buffer_mgr.c authsize : 0; authsize 899 drivers/crypto/ccree/cc_buffer_mgr.c size_for_map += authsize; authsize 901 drivers/crypto/ccree/cc_buffer_mgr.c size_for_map -= authsize; authsize 1010 drivers/crypto/ccree/cc_buffer_mgr.c unsigned int authsize = areq_ctx->req_authsize; authsize 1036 drivers/crypto/ccree/cc_buffer_mgr.c (req->cryptlen - authsize); authsize 1119 drivers/crypto/ccree/cc_buffer_mgr.c size_to_map += authsize; authsize 180 drivers/crypto/chelsio/chcr_algo.c int authsize = crypto_aead_authsize(tfm); authsize 187 drivers/crypto/chelsio/chcr_algo.c cmp = crypto_memneq(&fw6_pld->data[2], (fw6_pld + 1), authsize); authsize 191 drivers/crypto/chelsio/chcr_algo.c authsize, req->assoclen + authsize 192 drivers/crypto/chelsio/chcr_algo.c req->cryptlen - authsize); authsize 193 drivers/crypto/chelsio/chcr_algo.c cmp = crypto_memneq(temp, (fw6_pld + 1), authsize); authsize 2267 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 2273 drivers/crypto/chelsio/chcr_algo.c if (reqctx->op && req->cryptlen < authsize) authsize 2296 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(crypto_aead_reqtfm(req)); authsize 2298 drivers/crypto/chelsio/chcr_algo.c if (((req->cryptlen - (op_type ? authsize : 0)) == 0) || authsize 2337 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 2358 drivers/crypto/chelsio/chcr_algo.c (reqctx->op ? -authsize : authsize), CHCR_DST_SG_SIZE, 0); authsize 2387 drivers/crypto/chelsio/chcr_algo.c temp = (reqctx->op == CHCR_ENCRYPT_OP) ? 0 : authsize; authsize 2467 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 2471 drivers/crypto/chelsio/chcr_algo.c -authsize : authsize); authsize 2513 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 2517 drivers/crypto/chelsio/chcr_algo.c -authsize : authsize); authsize 2567 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 2574 drivers/crypto/chelsio/chcr_algo.c (reqctx->op ? -authsize : authsize); authsize 2897 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 2916 drivers/crypto/chelsio/chcr_algo.c + (reqctx->op ? -authsize : authsize), authsize 2993 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize = crypto_aead_authsize(tfm); authsize 3008 drivers/crypto/chelsio/chcr_algo.c (reqctx->op ? -authsize : authsize), authsize 3038 drivers/crypto/chelsio/chcr_algo.c temp = (reqctx->op == CHCR_ENCRYPT_OP) ? 0 : authsize; authsize 3119 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize) authsize 3125 drivers/crypto/chelsio/chcr_algo.c return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); authsize 3128 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize) authsize 3137 drivers/crypto/chelsio/chcr_algo.c if (authsize == ICV_4) { authsize 3140 drivers/crypto/chelsio/chcr_algo.c } else if (authsize == ICV_6) { authsize 3143 drivers/crypto/chelsio/chcr_algo.c } else if (authsize == ICV_10) { authsize 3146 drivers/crypto/chelsio/chcr_algo.c } else if (authsize == ICV_12) { authsize 3149 drivers/crypto/chelsio/chcr_algo.c } else if (authsize == ICV_14) { authsize 3152 drivers/crypto/chelsio/chcr_algo.c } else if (authsize == (maxauth >> 1)) { authsize 3155 drivers/crypto/chelsio/chcr_algo.c } else if (authsize == maxauth) { authsize 3162 drivers/crypto/chelsio/chcr_algo.c return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); authsize 3166 drivers/crypto/chelsio/chcr_algo.c static int chcr_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) authsize 3170 drivers/crypto/chelsio/chcr_algo.c switch (authsize) { authsize 3199 drivers/crypto/chelsio/chcr_algo.c return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); authsize 3203 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize) authsize 3207 drivers/crypto/chelsio/chcr_algo.c switch (authsize) { authsize 3223 drivers/crypto/chelsio/chcr_algo.c return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); authsize 3227 drivers/crypto/chelsio/chcr_algo.c unsigned int authsize) authsize 3231 drivers/crypto/chelsio/chcr_algo.c switch (authsize) { authsize 3263 drivers/crypto/chelsio/chcr_algo.c return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); authsize 189 drivers/crypto/chelsio/chcr_core.h unsigned int authsize; authsize 112 drivers/crypto/chelsio/chcr_ipsec.c int authsize = x->aead->alg_icv_len / 8; authsize 114 drivers/crypto/chelsio/chcr_ipsec.c sa_entry->authsize = authsize; authsize 116 drivers/crypto/chelsio/chcr_ipsec.c switch (authsize) { authsize 617 drivers/crypto/chelsio/chcr_ipsec.c sa_entry->authsize, authsize 618 drivers/crypto/chelsio/chcr_ipsec.c sa_entry->authsize); authsize 2153 drivers/crypto/inside-secure/safexcel_cipher.c unsigned int authsize) authsize 2155 drivers/crypto/inside-secure/safexcel_cipher.c return crypto_gcm_check_authsize(authsize); authsize 2242 drivers/crypto/inside-secure/safexcel_cipher.c unsigned int authsize) authsize 2245 drivers/crypto/inside-secure/safexcel_cipher.c switch (authsize) { authsize 346 drivers/crypto/ixp4xx_crypto.c int authsize = crypto_aead_authsize(tfm); authsize 347 drivers/crypto/ixp4xx_crypto.c int decryptlen = req->assoclen + req->cryptlen - authsize; authsize 351 drivers/crypto/ixp4xx_crypto.c req->dst, decryptlen, authsize, 1); authsize 654 drivers/crypto/ixp4xx_crypto.c static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, authsize 670 drivers/crypto/ixp4xx_crypto.c cfgword = algo->cfgword | ( authsize << 6); /* (authsize/4) << 8 */ authsize 982 drivers/crypto/ixp4xx_crypto.c unsigned authsize = crypto_aead_authsize(tfm); authsize 1005 drivers/crypto/ixp4xx_crypto.c cryptlen = req->cryptlen -authsize; authsize 1006 drivers/crypto/ixp4xx_crypto.c eff_cryptlen -= authsize; authsize 1033 drivers/crypto/ixp4xx_crypto.c if (lastlen >= authsize) authsize 1035 drivers/crypto/ixp4xx_crypto.c buf->buf_len - authsize; authsize 1055 drivers/crypto/ixp4xx_crypto.c if (lastlen >= authsize) authsize 1057 drivers/crypto/ixp4xx_crypto.c buf->buf_len - authsize; authsize 1061 drivers/crypto/ixp4xx_crypto.c if (unlikely(lastlen < authsize)) { authsize 1070 drivers/crypto/ixp4xx_crypto.c req->src, cryptlen, authsize, 0); authsize 1090 drivers/crypto/ixp4xx_crypto.c static int aead_setup(struct crypto_aead *tfm, unsigned int authsize) authsize 1111 drivers/crypto/ixp4xx_crypto.c ret = setup_auth(&tfm->base, 0, authsize, ctx->authkey, authsize 1115 drivers/crypto/ixp4xx_crypto.c ret = setup_auth(&tfm->base, 1, authsize, ctx->authkey, authsize 1134 drivers/crypto/ixp4xx_crypto.c static int aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) authsize 1138 drivers/crypto/ixp4xx_crypto.c if ((authsize>>2) < 1 || (authsize>>2) > max || (authsize & 3)) authsize 1140 drivers/crypto/ixp4xx_crypto.c return aead_setup(tfm, authsize); authsize 137 drivers/crypto/mediatek/mtk-aes.c u32 authsize; authsize 896 drivers/crypto/mediatek/mtk-aes.c info->cmd[cnt++] = AES_GCM_CMD4 | cpu_to_le32(gctx->authsize); authsize 899 drivers/crypto/mediatek/mtk-aes.c info->cmd[cnt++] = AES_GCM_CMD5 | cpu_to_le32(gctx->authsize); authsize 900 drivers/crypto/mediatek/mtk-aes.c info->cmd[cnt++] = AES_GCM_CMD6 | cpu_to_le32(gctx->authsize); authsize 972 drivers/crypto/mediatek/mtk-aes.c aes->total = len + gctx->authsize; authsize 974 drivers/crypto/mediatek/mtk-aes.c scatterwalk_map_and_copy(tag, req->dst, len, gctx->authsize, 1); authsize 996 drivers/crypto/mediatek/mtk-aes.c gctx->textlen = req->cryptlen - (enc ? 0 : gctx->authsize); authsize 1085 drivers/crypto/mediatek/mtk-aes.c u32 authsize) authsize 1091 drivers/crypto/mediatek/mtk-aes.c switch (authsize) { authsize 1100 drivers/crypto/mediatek/mtk-aes.c gctx->authsize = authsize; authsize 70 drivers/crypto/nx/nx-aes-ccm.c unsigned int authsize) authsize 72 drivers/crypto/nx/nx-aes-ccm.c switch (authsize) { authsize 89 drivers/crypto/nx/nx-aes-ccm.c unsigned int authsize) authsize 91 drivers/crypto/nx/nx-aes-ccm.c switch (authsize) { authsize 133 drivers/crypto/nx/nx-aes-ccm.c static int generate_b0(u8 *iv, unsigned int assoclen, unsigned int authsize, authsize 136 drivers/crypto/nx/nx-aes-ccm.c unsigned int l, lp, m = authsize; authsize 159 drivers/crypto/nx/nx-aes-ccm.c unsigned int authsize, authsize 211 drivers/crypto/nx/nx-aes-ccm.c rc = generate_b0(iv, assoclen, authsize, nbytes, b0); authsize 336 drivers/crypto/nx/nx-aes-ccm.c unsigned int authsize = crypto_aead_authsize(crypto_aead_reqtfm(req)); authsize 344 drivers/crypto/nx/nx-aes-ccm.c nbytes -= authsize; authsize 348 drivers/crypto/nx/nx-aes-ccm.c req->src, nbytes + req->assoclen, authsize, authsize 351 drivers/crypto/nx/nx-aes-ccm.c rc = generate_pat(desc->info, req, nx_ctx, authsize, nbytes, assoclen, authsize 401 drivers/crypto/nx/nx-aes-ccm.c authsize) ? -EBADMSG : 0; authsize 414 drivers/crypto/nx/nx-aes-ccm.c unsigned int authsize = crypto_aead_authsize(crypto_aead_reqtfm(req)); authsize 421 drivers/crypto/nx/nx-aes-ccm.c rc = generate_pat(desc->info, req, nx_ctx, authsize, nbytes, assoclen, authsize 472 drivers/crypto/nx/nx-aes-ccm.c req->dst, nbytes + req->assoclen, authsize, authsize 85 drivers/crypto/nx/nx-aes-gcm.c unsigned int authsize) authsize 87 drivers/crypto/nx/nx-aes-gcm.c switch (authsize) { authsize 65 drivers/crypto/omap-aes-gcm.c dd->authsize, 1); authsize 75 drivers/crypto/omap-aes-gcm.c for (i = 0; i < dd->authsize; i++) { authsize 140 drivers/crypto/omap-aes-gcm.c dd->authsize = authlen; authsize 232 drivers/crypto/omap-aes-gcm.c dd->authsize, 0); authsize 176 drivers/crypto/omap-aes.h size_t authsize; authsize 499 drivers/crypto/picoxcell_crypto.c unsigned int authsize) authsize 503 drivers/crypto/picoxcell_crypto.c return crypto_aead_setauthsize(ctx->sw_cipher, authsize); authsize 560 drivers/crypto/picoxcell_crypto.c unsigned int authsize = crypto_aead_authsize(aead); authsize 585 drivers/crypto/picoxcell_crypto.c proc_len -= authsize; authsize 589 drivers/crypto/picoxcell_crypto.c writel(authsize, engine->regs + SPA_ICV_LEN_REG_OFFSET); authsize 143 drivers/crypto/stm32/stm32-cryp.c size_t authsize; authsize 465 drivers/crypto/stm32/stm32-cryp.c cryp->areq->cryptlen - cryp->authsize; authsize 505 drivers/crypto/stm32/stm32-cryp.c b0[0] |= (8 * ((cryp->authsize - 2) / 2)); authsize 797 drivers/crypto/stm32/stm32-cryp.c unsigned int authsize) authsize 799 drivers/crypto/stm32/stm32-cryp.c return authsize == AES_BLOCK_SIZE ? 0 : -EINVAL; authsize 803 drivers/crypto/stm32/stm32-cryp.c unsigned int authsize) authsize 805 drivers/crypto/stm32/stm32-cryp.c switch (authsize) { authsize 968 drivers/crypto/stm32/stm32-cryp.c cryp->authsize = crypto_aead_authsize(crypto_aead_reqtfm(areq)); authsize 972 drivers/crypto/stm32/stm32-cryp.c cryp->total_out = cryp->total_in + cryp->authsize; authsize 975 drivers/crypto/stm32/stm32-cryp.c cryp->total_out = cryp->total_in - cryp->authsize; authsize 1189 drivers/crypto/stm32/stm32-cryp.c cryp->total_in_save - cryp->authsize, authsize 1190 drivers/crypto/stm32/stm32-cryp.c cryp->authsize, 0); authsize 1195 drivers/crypto/stm32/stm32-cryp.c if (crypto_memneq(in_tag, out_tag, cryp->authsize)) authsize 1242 drivers/crypto/stm32/stm32-cryp.c tag_size = cryp->authsize; authsize 1283 drivers/crypto/stm32/stm32-cryp.c tag_size = cryp->authsize; authsize 1399 drivers/crypto/stm32/stm32-cryp.c payload_bytes = is_decrypt(cryp) ? cryp->total_in - cryp->authsize : authsize 1511 drivers/crypto/stm32/stm32-cryp.c if (unlikely((cryp->total_in - cryp->authsize < AES_BLOCK_SIZE) && authsize 998 drivers/crypto/talitos.c unsigned int authsize = crypto_aead_authsize(aead); authsize 999 drivers/crypto/talitos.c unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); authsize 1009 drivers/crypto/talitos.c cryptlen + authsize, areq->assoclen); authsize 1052 drivers/crypto/talitos.c unsigned int authsize = crypto_aead_authsize(authenc); authsize 1063 drivers/crypto/talitos.c icv = oicv - authsize; authsize 1065 drivers/crypto/talitos.c err = crypto_memneq(oicv, icv, authsize) ? -EBADMSG : 0; authsize 1202 drivers/crypto/talitos.c unsigned int authsize = crypto_aead_authsize(aead); authsize 1206 drivers/crypto/talitos.c unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); authsize 1217 drivers/crypto/talitos.c dma_addr_t dma_icv = edesc->dma_link_tbl + edesc->dma_len - authsize; authsize 1254 drivers/crypto/talitos.c elen = authsize; authsize 1273 drivers/crypto/talitos.c elen = authsize; authsize 1289 drivers/crypto/talitos.c to_talitos_ptr(tbl_ptr, dma_icv, authsize, is_sec1); authsize 1290 drivers/crypto/talitos.c to_talitos_ptr_ext_or(&desc->ptr[5], authsize, is_sec1); authsize 1293 drivers/crypto/talitos.c to_talitos_ptr(&desc->ptr[6], dma_icv, authsize, is_sec1); authsize 1296 drivers/crypto/talitos.c talitos_sg_map(dev, areq->dst, authsize, edesc, &desc->ptr[6], authsize 1327 drivers/crypto/talitos.c unsigned int authsize, authsize 1342 drivers/crypto/talitos.c if (cryptlen + authsize > max_len) { authsize 1348 drivers/crypto/talitos.c src_len = assoclen + cryptlen + authsize; authsize 1358 drivers/crypto/talitos.c src_len = assoclen + cryptlen + (encrypt ? 0 : authsize); authsize 1365 drivers/crypto/talitos.c dst_len = assoclen + cryptlen + (encrypt ? authsize : 0); authsize 1383 drivers/crypto/talitos.c (dst_nents ? dst_len : 0) + authsize; authsize 1386 drivers/crypto/talitos.c sizeof(struct talitos_ptr) + authsize; authsize 1391 drivers/crypto/talitos.c alloc_len += icv_stashing ? authsize : 0; authsize 1423 drivers/crypto/talitos.c unsigned int authsize = crypto_aead_authsize(authenc); authsize 1426 drivers/crypto/talitos.c unsigned int cryptlen = areq->cryptlen - (encrypt ? 0 : authsize); authsize 1430 drivers/crypto/talitos.c authsize, ivsize, icv_stashing, authsize 1454 drivers/crypto/talitos.c unsigned int authsize = crypto_aead_authsize(authenc); authsize 1487 drivers/crypto/talitos.c sg_pcopy_to_buffer(req->src, edesc->src_nents ? : 1, icvdata, authsize, authsize 1488 drivers/crypto/talitos.c req->assoclen + req->cryptlen - authsize); authsize 133 include/crypto/aead.h int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize); authsize 147 include/crypto/aead.h unsigned int authsize; authsize 227 include/crypto/aead.h return tfm->authsize; authsize 294 include/crypto/aead.h int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize); authsize 13 include/crypto/gcm.h static inline int crypto_gcm_check_authsize(unsigned int authsize) authsize 15 include/crypto/gcm.h switch (authsize) { authsize 34 include/crypto/gcm.h static inline int crypto_rfc4106_check_authsize(unsigned int authsize) authsize 36 include/crypto/gcm.h switch (authsize) { authsize 51 include/crypto/if_alg.h int (*setauthsize)(void *private, unsigned int authsize); authsize 173 include/linux/ccp.h u32 authsize;