Lines Matching refs:authsize
353 int authsize = crypto_aead_authsize(tfm);
354 int decryptlen = req->cryptlen - authsize;
358 req->src, decryptlen, authsize, 1);
656 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize,
672 cfgword = algo->cfgword | ( authsize << 6); /* (authsize/4) << 8 */
1006 unsigned authsize = crypto_aead_authsize(tfm);
1025 /* req->cryptlen includes the authsize when decrypting */
1026 cryptlen = req->cryptlen -authsize;
1027 eff_cryptlen -= authsize;
1064 if (unlikely(hmac_inconsistent(req->src, cryptlen, authsize))) {
1073 req->src, cryptlen, authsize, 0);
1080 buf = chainup_buffers(dev, req->src, cryptlen + authsize, buf, flags,
1085 crypt->icv_rev_aes = buf->phys_addr + buf->buf_len - authsize;
1104 static int aead_setup(struct crypto_aead *tfm, unsigned int authsize)
1125 ret = setup_auth(&tfm->base, 0, authsize, ctx->authkey,
1129 ret = setup_auth(&tfm->base, 1, authsize, ctx->authkey,
1148 static int aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize)
1152 if ((authsize>>2) < 1 || (authsize>>2) > max || (authsize & 3))
1154 return aead_setup(tfm, authsize);