Lines Matching refs:cryptlen
138 unsigned int cryptlen) in format_input() argument
156 return set_msg_len(info + 16 - l, cryptlen, l); in format_input()
179 unsigned int cryptlen) in crypto_ccm_auth() argument
192 err = format_input(odata, req, cryptlen); in crypto_ccm_auth()
228 cryptlen += ilen; in crypto_ccm_auth()
231 ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen); in crypto_ccm_auth()
246 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
302 unsigned int cryptlen = req->cryptlen; in crypto_ccm_encrypt() local
311 err = crypto_ccm_auth(req, sg_next(pctx->src), cryptlen); in crypto_ccm_encrypt()
322 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
328 scatterwalk_map_and_copy(odata, sg_next(dst), cryptlen, in crypto_ccm_encrypt()
340 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done() local
348 err = crypto_ccm_auth(req, dst, cryptlen); in crypto_ccm_decrypt_done()
363 unsigned int cryptlen = req->cryptlen; in crypto_ccm_decrypt() local
369 cryptlen -= authsize; in crypto_ccm_decrypt()
375 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen, in crypto_ccm_decrypt()
387 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
392 err = crypto_ccm_auth(req, sg_next(dst), cryptlen); in crypto_ccm_decrypt()
702 req->cryptlen, iv); in crypto_rfc4309_crypt()