Lines Matching refs:cryptlen
127 unsigned int cryptlen) in format_input() argument
145 return set_msg_len(info + 16 - l, cryptlen, l); in format_input()
168 unsigned int cryptlen) in crypto_ccm_auth() argument
181 err = format_input(odata, req, cryptlen); in crypto_ccm_auth()
217 cryptlen += ilen; in crypto_ccm_auth()
220 ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen); in crypto_ccm_auth()
235 req->assoclen + req->cryptlen, in crypto_ccm_encrypt_done()
291 unsigned int cryptlen = req->cryptlen; in crypto_ccm_encrypt() local
300 err = crypto_ccm_auth(req, sg_next(pctx->src), cryptlen); in crypto_ccm_encrypt()
311 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
317 scatterwalk_map_and_copy(odata, sg_next(dst), cryptlen, in crypto_ccm_encrypt()
329 unsigned int cryptlen = req->cryptlen - authsize; in crypto_ccm_decrypt_done() local
337 err = crypto_ccm_auth(req, dst, cryptlen); in crypto_ccm_decrypt_done()
352 unsigned int cryptlen = req->cryptlen; in crypto_ccm_decrypt() local
358 cryptlen -= authsize; in crypto_ccm_decrypt()
364 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen, in crypto_ccm_decrypt()
376 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
381 err = crypto_ccm_auth(req, sg_next(dst), cryptlen); in crypto_ccm_decrypt()
641 req->cryptlen, iv); in crypto_rfc4309_crypt()