Lines Matching refs:authsize
73 unsigned int authsize; member
100 if (!ctx->cdata.keylen || !ctx->authsize) in aead_set_sh_desc()
150 ivsize, ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
165 ivsize, ctx->authsize, alg->caam.geniv, in aead_set_sh_desc()
183 ivsize, ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
190 static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in aead_setauthsize() argument
194 ctx->authsize = authsize; in aead_setauthsize()
312 if (!ctx->cdata.keylen || !ctx->authsize) in gcm_set_sh_desc()
328 ctx->authsize, true); in gcm_set_sh_desc()
343 ctx->authsize, true); in gcm_set_sh_desc()
348 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument
353 err = crypto_gcm_check_authsize(authsize); in gcm_setauthsize()
357 ctx->authsize = authsize; in gcm_setauthsize()
415 if (!ctx->cdata.keylen || !ctx->authsize) in rfc4106_set_sh_desc()
432 ctx->authsize, true); in rfc4106_set_sh_desc()
446 ctx->authsize, true); in rfc4106_set_sh_desc()
452 unsigned int authsize) in rfc4106_setauthsize() argument
457 err = crypto_rfc4106_check_authsize(authsize); in rfc4106_setauthsize()
461 ctx->authsize = authsize; in rfc4106_setauthsize()
523 if (!ctx->cdata.keylen || !ctx->authsize) in rfc4543_set_sh_desc()
540 ctx->authsize, true); in rfc4543_set_sh_desc()
554 ctx->authsize, true); in rfc4543_set_sh_desc()
560 unsigned int authsize) in rfc4543_setauthsize() argument
564 if (authsize != 16) in rfc4543_setauthsize()
567 ctx->authsize = authsize; in rfc4543_setauthsize()
956 unsigned int authsize = ctx->authsize; in aead_edesc_alloc() local
975 (encrypt ? authsize : 0); in aead_edesc_alloc()
994 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
1136 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()