Lines Matching refs:authsize
57 unsigned int authsize; /* Actual (reduced?) size of the MAC/ICv */ member
229 ctx->authsize) != 0) { in cc_aead_complete()
231 ctx->authsize, ctx->cipher_mode); in cc_aead_complete()
244 skip, (skip + ctx->authsize), in cc_aead_complete()
670 unsigned int authsize) in cc_aead_setauthsize() argument
676 if (authsize == 0 || in cc_aead_setauthsize()
677 authsize > crypto_aead_maxauthsize(authenc)) { in cc_aead_setauthsize()
681 ctx->authsize = authsize; in cc_aead_setauthsize()
682 dev_dbg(dev, "authlen=%d\n", ctx->authsize); in cc_aead_setauthsize()
688 unsigned int authsize) in cc_rfc4309_ccm_setauthsize() argument
690 switch (authsize) { in cc_rfc4309_ccm_setauthsize()
699 return cc_aead_setauthsize(authenc, authsize); in cc_rfc4309_ccm_setauthsize()
703 unsigned int authsize) in cc_ccm_setauthsize() argument
705 switch (authsize) { in cc_ccm_setauthsize()
718 return cc_aead_setauthsize(authenc, authsize); in cc_ccm_setauthsize()
887 set_dout_dlli(&desc[idx], req_ctx->icv_dma_addr, ctx->authsize, in cc_proc_digest_desc()
904 ctx->authsize, NS_BIT, 1); in cc_proc_digest_desc()
1319 (req->cryptlen - ctx->authsize) : req->cryptlen; in validate_data_size()
1322 req->cryptlen < ctx->authsize) in validate_data_size()
1494 set_dout_dlli(&desc[idx], req_ctx->mac_buf_dma_addr, ctx->authsize, in cc_ccm()
1521 ctx->authsize, NS_BIT); in cc_ccm()
1522 set_dout_dlli(&desc[idx], mac_result, ctx->authsize, NS_BIT, 1); in cc_ccm()
1543 unsigned int m = ctx->authsize; /* This is M' of RFC 3610. */ in config_ccm_adata()
1550 (req->cryptlen - ctx->authsize); in config_ccm_adata()
1784 set_dout_dlli(&desc[idx], mac_result, ctx->authsize, NS_BIT, 1); in cc_proc_gcm_result()
1839 (req->cryptlen - ctx->authsize); in config_gcm_context()
1843 __func__, cryptlen, req_ctx->assoclen, ctx->authsize); in config_gcm_context()
1923 areq_ctx->req_authsize = ctx->authsize; in cc_proc_aead()
2142 unsigned int authsize) in cc_gcm_setauthsize() argument
2144 switch (authsize) { in cc_gcm_setauthsize()
2157 return cc_aead_setauthsize(authenc, authsize); in cc_gcm_setauthsize()
2161 unsigned int authsize) in cc_rfc4106_gcm_setauthsize() argument
2166 dev_dbg(dev, "authsize %d\n", authsize); in cc_rfc4106_gcm_setauthsize()
2168 switch (authsize) { in cc_rfc4106_gcm_setauthsize()
2177 return cc_aead_setauthsize(authenc, authsize); in cc_rfc4106_gcm_setauthsize()
2181 unsigned int authsize) in cc_rfc4543_gcm_setauthsize() argument
2186 dev_dbg(dev, "authsize %d\n", authsize); in cc_rfc4543_gcm_setauthsize()
2188 if (authsize != 16) in cc_rfc4543_gcm_setauthsize()
2191 return cc_aead_setauthsize(authenc, authsize); in cc_rfc4543_gcm_setauthsize()