Lines Matching refs:cryptlen
47 __le64 cryptlen; member
67 unsigned int cryptlen; member
103 req->assoclen + rctx->cryptlen, in poly_verify_tag()
115 req->assoclen + rctx->cryptlen, in poly_copy_tag()
133 if (rctx->cryptlen == 0) in chacha_decrypt()
151 rctx->cryptlen, creq->iv); in chacha_decrypt()
164 if (rctx->cryptlen == req->cryptlen) /* encrypting */ in poly_tail_continue()
187 len = cpu_to_le64(rctx->cryptlen); in poly_tail()
188 memcpy(&preq->tail.cryptlen, &len, sizeof(len)); in poly_tail()
217 padlen = (bs - (rctx->cryptlen % bs)) % bs; in poly_cipherpad()
247 if (rctx->cryptlen == req->cryptlen) /* encrypting */ in poly_cipher()
256 ahash_request_set_crypt(&preq->req, crypt, NULL, rctx->cryptlen); in poly_cipher()
422 if (req->cryptlen == 0) in chacha_encrypt()
440 req->cryptlen, creq->iv); in chacha_encrypt()
453 rctx->cryptlen = req->cryptlen; in chachapoly_encrypt()
474 rctx->cryptlen = req->cryptlen - POLY1305_DIGEST_SIZE; in chachapoly_decrypt()