HomeFreeBSD

crypto: Don't assert for empty output buffers.

Description

crypto: Don't assert for empty output buffers.

It is always valid for crp_payload_output_start to be 0. However, if
an output buffer is empty (e.g. a decryption request with a tag but an
empty payload), the existing assertion failed since 0 is not less than
0.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33193

Details

Provenance
jhbAuthored on Dec 9 2021, 7:52 PM
Differential Revision
D33193: crypto: Don't assert for empty output buffers.
Parents
rG357ba2cf17bf: cxgbe(4): Update firmwares to 1.26.4.0
Branches
Unknown
Tags
Unknown