-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aes: Clarify empty buffer handling in AES-CTR.
At one point we required `f` to be able to handle empty inputs, but a later refactoring changed that, and added the necessary check before calling `f`, but we forgot to update the comment. To further clarify things, use `NonZeroU32` when incrementing the counter, since a zero increment would result in a reused counter.
- Loading branch information
1 parent
1d17896
commit 072ee75
Showing
2 changed files
with
10 additions
and
7 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
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