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
This commit is contained in:
John Baldwin 2020-05-25 23:12:49 +00:00
parent 23230d520a
commit 72d874fa90

View File

@ -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);