From 9cdc800429a4c3f3c8dcf0daf1eec013e3b47584 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 25 May 2020 23:12:49 +0000 Subject: [PATCH] Update cesa(4) for separate output buffers changes in r361481. This does not add support for separate output buffers but updates the driver to cope with the changes. Pointy hat to: jhb --- sys/dev/cesa/cesa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cesa/cesa.c b/sys/dev/cesa/cesa.c index 11e2898c1526..04646f1f4bd3 100644 --- a/sys/dev/cesa/cesa.c +++ b/sys/dev/cesa/cesa.c @@ -1712,7 +1712,7 @@ cesa_process(device_t dev, struct cryptop *crp, int hint) csp = crypto_get_params(crp->crp_session); /* Check and parse input */ - if (crp->crp_ilen > CESA_MAX_REQUEST_SIZE) { + if (crypto_buffer_len(&crp->crp_buf) > CESA_MAX_REQUEST_SIZE) { crp->crp_etype = E2BIG; crypto_done(crp); return (0);