Lines Matching refs:cryptlen
129 unsigned int cryptlen) in format_input() argument
147 return set_msg_len(info + 16 - l, cryptlen, l); in format_input()
170 unsigned int cryptlen) in crypto_ccm_auth() argument
183 err = format_input(odata, req, cryptlen); in crypto_ccm_auth()
219 cryptlen += ilen; in crypto_ccm_auth()
222 ahash_request_set_crypt(ahreq, plain, odata, cryptlen); in crypto_ccm_auth()
237 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
293 unsigned int cryptlen = req->cryptlen; in crypto_ccm_encrypt() local
302 err = crypto_ccm_auth(req, sg_next(pctx->src), cryptlen); in crypto_ccm_encrypt()
313 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
319 scatterwalk_map_and_copy(odata, sg_next(dst), cryptlen, in crypto_ccm_encrypt()
330 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done() local
338 err = crypto_ccm_auth(req, dst, cryptlen); in crypto_ccm_decrypt_done()
353 unsigned int cryptlen = req->cryptlen; in crypto_ccm_decrypt() local
359 cryptlen -= authsize; in crypto_ccm_decrypt()
365 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen, in crypto_ccm_decrypt()
377 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
382 err = crypto_ccm_auth(req, sg_next(dst), cryptlen); in crypto_ccm_decrypt()
640 req->cryptlen, iv); in crypto_rfc4309_crypt()