Lines Matching refs:authsize
68 unsigned int authsize; member
95 if (!ctx->cdata.keylen || !ctx->authsize) in aead_set_sh_desc()
145 ivsize, ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
160 ivsize, ctx->authsize, alg->caam.geniv, in aead_set_sh_desc()
178 ivsize, ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
185 static int aead_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in aead_setauthsize() argument
189 ctx->authsize = authsize; in aead_setauthsize()
307 if (!ctx->cdata.keylen || !ctx->authsize) in gcm_set_sh_desc()
323 ctx->authsize, true); in gcm_set_sh_desc()
338 ctx->authsize, true); in gcm_set_sh_desc()
343 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument
348 err = crypto_gcm_check_authsize(authsize); in gcm_setauthsize()
352 ctx->authsize = authsize; in gcm_setauthsize()
410 if (!ctx->cdata.keylen || !ctx->authsize) in rfc4106_set_sh_desc()
427 ctx->authsize, true); in rfc4106_set_sh_desc()
441 ctx->authsize, true); in rfc4106_set_sh_desc()
447 unsigned int authsize) in rfc4106_setauthsize() argument
452 err = crypto_rfc4106_check_authsize(authsize); in rfc4106_setauthsize()
456 ctx->authsize = authsize; in rfc4106_setauthsize()
518 if (!ctx->cdata.keylen || !ctx->authsize) in rfc4543_set_sh_desc()
535 ctx->authsize, true); in rfc4543_set_sh_desc()
549 ctx->authsize, true); in rfc4543_set_sh_desc()
555 unsigned int authsize) in rfc4543_setauthsize() argument
559 if (authsize != 16) in rfc4543_setauthsize()
562 ctx->authsize = authsize; in rfc4543_setauthsize()
951 unsigned int authsize = ctx->authsize; in aead_edesc_alloc() local
970 (encrypt ? authsize : 0); in aead_edesc_alloc()
989 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
1131 (encrypt ? ctx->authsize : (-ctx->authsize)); in aead_edesc_alloc()