Lines Matching refs:authsize
354 int authsize = crypto_aead_authsize(tfm); in finish_scattered_hmac() local
355 int decryptlen = req->assoclen + req->cryptlen - authsize; in finish_scattered_hmac()
359 decryptlen, authsize, 1); in finish_scattered_hmac()
734 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned int authsize, in setup_auth() argument
750 cfgword = algo->cfgword | (authsize << 6); /* (authsize/4) << 8 */ in setup_auth()
1092 unsigned int authsize = crypto_aead_authsize(tfm); in aead_perform() local
1115 cryptlen = req->cryptlen - authsize; in aead_perform()
1116 eff_cryptlen -= authsize; in aead_perform()
1143 if (lastlen >= authsize) in aead_perform()
1145 buf->buf_len - authsize; in aead_perform()
1165 if (lastlen >= authsize) in aead_perform()
1167 buf->buf_len - authsize; in aead_perform()
1171 if (unlikely(lastlen < authsize)) { in aead_perform()
1180 req->src, cryptlen, authsize, 0); in aead_perform()
1200 static int aead_setup(struct crypto_aead *tfm, unsigned int authsize) in aead_setup() argument
1220 ret = setup_auth(&tfm->base, 0, authsize, ctx->authkey, in aead_setup()
1224 ret = setup_auth(&tfm->base, 1, authsize, ctx->authkey, in aead_setup()
1232 static int aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in aead_setauthsize() argument
1236 if ((authsize >> 2) < 1 || (authsize >> 2) > max || (authsize & 3)) in aead_setauthsize()
1238 return aead_setup(tfm, authsize); in aead_setauthsize()