Lines Matching refs:cryptlen
128 unsigned int cryptlen) in format_input() argument
146 return set_msg_len(info + 16 - l, cryptlen, l); in format_input()
169 unsigned int cryptlen) in crypto_ccm_auth() argument
182 err = format_input(odata, req, cryptlen); in crypto_ccm_auth()
218 cryptlen += ilen; in crypto_ccm_auth()
221 ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen); in crypto_ccm_auth()
236 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
292 unsigned int cryptlen = req->cryptlen; in crypto_ccm_encrypt() local
301 err = crypto_ccm_auth(req, sg_next(pctx->src), cryptlen); in crypto_ccm_encrypt()
312 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
318 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()
642 req->cryptlen, iv); in crypto_rfc4309_crypt()