From 72d874fa9068c70d2ea862ce7e76816d60b26c16 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 25 May 2020 23:12:49 +0000 Subject: 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(-) (limited to 'sys/dev/cesa') 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); -- cgit v1.3