forked from sfackler/rust-openssl
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix output buffer check introduced in sfackler#1733
Sadly the condition used to relax output buffer checks that depended on the `num` parameter does not really hold so this change effectively reverts PR sfackler#1733. As clarified on the OpenSSL mailing list [0] and during integration tests the `num` parameter does not reflect the internal buffer cache size thus one needs to pessimistically assume that each call to `cipher_update` will need sufficient size to contain one additional block. Streaming ciphers are not affected by this revert. [0]: https://mta.openssl.org/pipermail/openssl-users/2022-December/015727.html
- Loading branch information
Showing
1 changed file
with
4 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters