Page MenuHomeFreeBSD

crypto: Don't assert for empty output buffers.
ClosedPublic

Authored by jhb on Nov 30 2021, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 3:51 AM
Unknown Object (File)
Wed, Oct 15, 3:51 AM
Unknown Object (File)
Wed, Oct 15, 3:51 AM
Unknown Object (File)
Tue, Oct 14, 6:33 PM
Unknown Object (File)
Tue, Oct 14, 1:24 PM
Unknown Object (File)
Sat, Oct 11, 3:56 AM
Unknown Object (File)
Sat, Oct 11, 2:04 AM
Unknown Object (File)
Sat, Oct 11, 1:49 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable