-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chacha20_poly1305 internals: DRY per-packet initialization.
Create a new function `begin` that is used by all the opening and sealing operations in both `chacha20_poly1305` and `chacha20_poly1305_openssh`. Inline `derive_poly1305_key` into it. In `seal_in_place`, put the `begin` after the parsing so that we avoid doing it if the parsing fails.
- Loading branch information
1 parent
b5f73c0
commit 7e93807
Showing
2 changed files
with
32 additions
and
34 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