Lines Matching refs:authsize
175 int authsize = crypto_aead_authsize(tfm); in chcr_verify_tag() local
182 cmp = crypto_memneq(&fw6_pld->data[2], (fw6_pld + 1), authsize); in chcr_verify_tag()
186 authsize, req->assoclen + in chcr_verify_tag()
187 req->cryptlen - authsize); in chcr_verify_tag()
188 cmp = crypto_memneq(temp, (fw6_pld + 1), authsize); in chcr_verify_tag()
2377 unsigned int authsize = crypto_aead_authsize(tfm); in chcr_aead_common_init() local
2383 if (reqctx->op && req->cryptlen < authsize) in chcr_aead_common_init()
2406 unsigned int authsize = crypto_aead_authsize(crypto_aead_reqtfm(req)); in chcr_aead_need_fallback() local
2408 if (((req->cryptlen - (op_type ? authsize : 0)) == 0) || in chcr_aead_need_fallback()
2449 unsigned int authsize = crypto_aead_authsize(tfm); in create_authenc_wr() local
2472 (reqctx->op ? -authsize : authsize), CHCR_DST_SG_SIZE, 0); in create_authenc_wr()
2501 temp = (reqctx->op == CHCR_ENCRYPT_OP) ? 0 : authsize; in create_authenc_wr()
2581 unsigned int authsize = crypto_aead_authsize(tfm); in chcr_aead_dma_map() local
2589 0 : authsize); in chcr_aead_dma_map()
2594 -authsize : authsize); in chcr_aead_dma_map()
2642 unsigned int authsize = crypto_aead_authsize(tfm); in chcr_aead_dma_unmap() local
2650 0 : authsize); in chcr_aead_dma_unmap()
2655 -authsize : authsize); in chcr_aead_dma_unmap()
2710 unsigned int authsize = crypto_aead_authsize(tfm); in chcr_add_aead_dst_ent() local
2720 (reqctx->op ? -authsize : authsize); in chcr_add_aead_dst_ent()
3047 unsigned int authsize = crypto_aead_authsize(tfm); in create_aead_ccm_wr() local
3066 + (reqctx->op ? -authsize : authsize), in create_aead_ccm_wr()
3145 unsigned int authsize = crypto_aead_authsize(tfm); in create_gcm_wr() local
3162 (reqctx->op ? -authsize : authsize), in create_gcm_wr()
3192 temp = (reqctx->op == CHCR_ENCRYPT_OP) ? 0 : authsize; in create_gcm_wr()
3272 unsigned int authsize) in chcr_authenc_null_setauthsize() argument
3278 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_null_setauthsize()
3281 unsigned int authsize) in chcr_authenc_setauthsize() argument
3290 if (authsize == ICV_4) { in chcr_authenc_setauthsize()
3293 } else if (authsize == ICV_6) { in chcr_authenc_setauthsize()
3296 } else if (authsize == ICV_10) { in chcr_authenc_setauthsize()
3299 } else if (authsize == ICV_12) { in chcr_authenc_setauthsize()
3302 } else if (authsize == ICV_14) { in chcr_authenc_setauthsize()
3305 } else if (authsize == (maxauth >> 1)) { in chcr_authenc_setauthsize()
3308 } else if (authsize == maxauth) { in chcr_authenc_setauthsize()
3315 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_authenc_setauthsize()
3319 static int chcr_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in chcr_gcm_setauthsize() argument
3323 switch (authsize) { in chcr_gcm_setauthsize()
3352 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_gcm_setauthsize()
3356 unsigned int authsize) in chcr_4106_4309_setauthsize() argument
3360 switch (authsize) { in chcr_4106_4309_setauthsize()
3376 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_4106_4309_setauthsize()
3380 unsigned int authsize) in chcr_ccm_setauthsize() argument
3384 switch (authsize) { in chcr_ccm_setauthsize()
3416 return crypto_aead_setauthsize(aeadctx->sw_cipher, authsize); in chcr_ccm_setauthsize()