• Home
  • Raw
  • Download

Lines Matching refs:authsize

118 	unsigned int authsize;  member
155 cnstr_shdsc_aead_null_encap(desc, &ctx->adata, ctx->authsize, in aead_null_set_sh_desc()
174 cnstr_shdsc_aead_null_decap(desc, &ctx->adata, ctx->authsize, in aead_null_set_sh_desc()
198 if (!ctx->authsize) in aead_set_sh_desc()
257 ctx->authsize, is_rfc3686, nonce, ctx1_iv_off, in aead_set_sh_desc()
279 ctx->authsize, alg->caam.geniv, is_rfc3686, in aead_set_sh_desc()
303 ctx->authsize, is_rfc3686, nonce, in aead_set_sh_desc()
313 unsigned int authsize) in aead_setauthsize() argument
317 ctx->authsize = authsize; in aead_setauthsize()
332 if (!ctx->cdata.keylen || !ctx->authsize) in gcm_set_sh_desc()
349 cnstr_shdsc_gcm_encap(desc, &ctx->cdata, ivsize, ctx->authsize, false); in gcm_set_sh_desc()
366 cnstr_shdsc_gcm_decap(desc, &ctx->cdata, ivsize, ctx->authsize, false); in gcm_set_sh_desc()
373 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize() argument
378 err = crypto_gcm_check_authsize(authsize); in gcm_setauthsize()
382 ctx->authsize = authsize; in gcm_setauthsize()
397 if (!ctx->cdata.keylen || !ctx->authsize) in rfc4106_set_sh_desc()
414 cnstr_shdsc_rfc4106_encap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4106_set_sh_desc()
432 cnstr_shdsc_rfc4106_decap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4106_set_sh_desc()
441 unsigned int authsize) in rfc4106_setauthsize() argument
446 err = crypto_rfc4106_check_authsize(authsize); in rfc4106_setauthsize()
450 ctx->authsize = authsize; in rfc4106_setauthsize()
465 if (!ctx->cdata.keylen || !ctx->authsize) in rfc4543_set_sh_desc()
482 cnstr_shdsc_rfc4543_encap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4543_set_sh_desc()
500 cnstr_shdsc_rfc4543_decap(desc, &ctx->cdata, ivsize, ctx->authsize, in rfc4543_set_sh_desc()
509 unsigned int authsize) in rfc4543_setauthsize() argument
513 if (authsize != 16) in rfc4543_setauthsize()
516 ctx->authsize = authsize; in rfc4543_setauthsize()
529 if (!ctx->cdata.keylen || !ctx->authsize) in chachapoly_set_sh_desc()
534 ctx->authsize, true, false); in chachapoly_set_sh_desc()
540 ctx->authsize, false, false); in chachapoly_set_sh_desc()
548 unsigned int authsize) in chachapoly_setauthsize() argument
552 if (authsize != POLY1305_DIGEST_SIZE) in chachapoly_setauthsize()
555 ctx->authsize = authsize; in chachapoly_setauthsize()
1062 int authsize = ctx->authsize; in init_aead_job() local
1109 req->assoclen + req->cryptlen + authsize, in init_aead_job()
1113 req->assoclen + req->cryptlen - authsize, in init_aead_job()
1303 unsigned int authsize = ctx->authsize; in aead_edesc_alloc() local
1307 dst_len = src_len + (encrypt ? authsize : (-authsize)); in aead_edesc_alloc()
1324 (encrypt ? authsize : 0); in aead_edesc_alloc()