Lines Matching refs:authsize
341 int authsize = crypto_aead_authsize(tfm); in finish_scattered_hmac() local
342 int decryptlen = req->cryptlen - authsize; in finish_scattered_hmac()
346 req->src, decryptlen, authsize, 1); in finish_scattered_hmac()
645 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument
661 cfgword = algo->cfgword | ( authsize << 6); /* (authsize/4) << 8 */ in setup_auth()
995 unsigned authsize = crypto_aead_authsize(tfm); in aead_perform() local
1016 cryptlen = req->cryptlen -authsize; in aead_perform()
1017 eff_cryptlen -= authsize; in aead_perform()
1054 if (unlikely(hmac_inconsistent(req->src, cryptlen, authsize))) { in aead_perform()
1063 req->src, cryptlen, authsize, 0); in aead_perform()
1070 buf = chainup_buffers(dev, req->src, cryptlen + authsize, buf, flags, in aead_perform()
1075 crypt->icv_rev_aes = buf->phys_addr + buf->buf_len - authsize; in aead_perform()
1094 static int aead_setup(struct crypto_aead *tfm, unsigned int authsize) in aead_setup() argument
1115 ret = setup_auth(&tfm->base, 0, authsize, ctx->authkey, in aead_setup()
1119 ret = setup_auth(&tfm->base, 1, authsize, ctx->authkey, in aead_setup()
1138 static int aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in aead_setauthsize() argument
1142 if ((authsize>>2) < 1 || (authsize>>2) > max || (authsize & 3)) in aead_setauthsize()
1144 return aead_setup(tfm, authsize); in aead_setauthsize()