Lines Matching refs:cryptlen
124 unsigned int cryptlen) in format_input() argument
142 return set_msg_len(info + 16 - l, cryptlen, l); in format_input()
246 unsigned int cryptlen) in crypto_ccm_auth() argument
258 err = format_input(odata, req, cryptlen); in crypto_ccm_auth()
274 get_data_to_compute(cipher, pctx, plain, cryptlen); in crypto_ccm_auth()
288 scatterwalk_map_and_copy(odata, req->dst, req->cryptlen, in crypto_ccm_encrypt_done()
309 unsigned int cryptlen = req->cryptlen; in crypto_ccm_encrypt() local
320 err = crypto_ccm_auth(req, req->src, cryptlen); in crypto_ccm_encrypt()
344 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
350 scatterwalk_map_and_copy(odata, req->dst, cryptlen, in crypto_ccm_encrypt()
362 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done() local
365 err = crypto_ccm_auth(req, req->dst, cryptlen); in crypto_ccm_decrypt_done()
380 unsigned int cryptlen = req->cryptlen; in crypto_ccm_decrypt() local
386 if (cryptlen < authsize) in crypto_ccm_decrypt()
388 cryptlen -= authsize; in crypto_ccm_decrypt()
396 scatterwalk_map_and_copy(authtag, req->src, cryptlen, authsize, 0); in crypto_ccm_decrypt()
415 ablkcipher_request_set_crypt(abreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
420 err = crypto_ccm_auth(req, req->dst, cryptlen); in crypto_ccm_decrypt()
695 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, iv); in crypto_rfc4309_crypt()