Lines Matching refs:authsize
1553 u32 authsize; in atmel_aes_gcm_process() local
1556 authsize = crypto_aead_authsize(tfm); in atmel_aes_gcm_process()
1557 ctx->textlen = req->cryptlen - (enc ? 0 : authsize); in atmel_aes_gcm_process()
1704 u32 offset, authsize, itag[4], *otag = ctx->tag; in atmel_aes_gcm_finalize() local
1714 authsize = crypto_aead_authsize(tfm); in atmel_aes_gcm_finalize()
1716 scatterwalk_map_and_copy(otag, req->dst, offset, authsize, 1); in atmel_aes_gcm_finalize()
1719 scatterwalk_map_and_copy(itag, req->src, offset, authsize, 0); in atmel_aes_gcm_finalize()
1720 err = crypto_memneq(itag, otag, authsize) ? -EBADMSG : 0; in atmel_aes_gcm_finalize()
1759 unsigned int authsize) in atmel_aes_gcm_setauthsize() argument
1761 return crypto_gcm_check_authsize(authsize); in atmel_aes_gcm_setauthsize()
2081 u32 offs, authsize; in atmel_aes_authenc_final() local
2089 authsize = crypto_aead_authsize(tfm); in atmel_aes_authenc_final()
2091 scatterwalk_map_and_copy(odigest, req->dst, offs, authsize, 1); in atmel_aes_authenc_final()
2093 scatterwalk_map_and_copy(idigest, req->src, offs, authsize, 0); in atmel_aes_authenc_final()
2094 if (crypto_memneq(idigest, odigest, authsize)) in atmel_aes_authenc_final()
2197 u32 authsize = crypto_aead_authsize(tfm); in atmel_aes_authenc_crypt() local
2201 if (!enc && req->cryptlen < authsize) in atmel_aes_authenc_crypt()
2203 rctx->textlen = req->cryptlen - (enc ? 0 : authsize); in atmel_aes_authenc_crypt()