Lines Matching refs:authsize
346 int authsize = crypto_aead_authsize(tfm); in finish_scattered_hmac() local
347 int decryptlen = req->assoclen + req->cryptlen - authsize; in finish_scattered_hmac()
351 req->dst, decryptlen, authsize, 1); in finish_scattered_hmac()
654 static int setup_auth(struct crypto_tfm *tfm, int encrypt, unsigned authsize, in setup_auth() argument
670 cfgword = algo->cfgword | ( authsize << 6); /* (authsize/4) << 8 */ in setup_auth()
982 unsigned authsize = crypto_aead_authsize(tfm); in aead_perform() local
1005 cryptlen = req->cryptlen -authsize; in aead_perform()
1006 eff_cryptlen -= authsize; in aead_perform()
1033 if (lastlen >= authsize) in aead_perform()
1035 buf->buf_len - authsize; in aead_perform()
1055 if (lastlen >= authsize) in aead_perform()
1057 buf->buf_len - authsize; in aead_perform()
1061 if (unlikely(lastlen < authsize)) { in aead_perform()
1070 req->src, cryptlen, authsize, 0); in aead_perform()
1090 static int aead_setup(struct crypto_aead *tfm, unsigned int authsize) in aead_setup() argument
1111 ret = setup_auth(&tfm->base, 0, authsize, ctx->authkey, in aead_setup()
1115 ret = setup_auth(&tfm->base, 1, authsize, ctx->authkey, in aead_setup()
1134 static int aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in aead_setauthsize() argument
1138 if ((authsize>>2) < 1 || (authsize>>2) > max || (authsize & 3)) in aead_setauthsize()
1140 return aead_setup(tfm, authsize); in aead_setauthsize()