Lines Matching refs:cryptlen
125 unsigned int cryptlen) in format_input() argument
143 return set_msg_len(info + 16 - l, cryptlen, l); in format_input()
166 unsigned int cryptlen) in crypto_ccm_auth() argument
179 err = format_input(odata, req, cryptlen); in crypto_ccm_auth()
215 cryptlen += ilen; in crypto_ccm_auth()
218 ahash_request_set_crypt(ahreq, plain, odata, cryptlen); in crypto_ccm_auth()
233 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
289 unsigned int cryptlen = req->cryptlen; in crypto_ccm_encrypt() local
298 err = crypto_ccm_auth(req, sg_next(pctx->src), cryptlen); in crypto_ccm_encrypt()
309 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
315 scatterwalk_map_and_copy(odata, sg_next(dst), cryptlen, in crypto_ccm_encrypt()
326 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done() local
334 err = crypto_ccm_auth(req, dst, cryptlen); in crypto_ccm_decrypt_done()
349 unsigned int cryptlen = req->cryptlen; in crypto_ccm_decrypt() local
355 cryptlen -= authsize; in crypto_ccm_decrypt()
361 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen, in crypto_ccm_decrypt()
373 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
378 err = crypto_ccm_auth(req, sg_next(dst), cryptlen); in crypto_ccm_decrypt()
636 req->cryptlen, iv); in crypto_rfc4309_crypt()