-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto/boringssl: do dummy seal on key update too
Follow-up to b17904e. Currently the dummy seal operation done to prime the AEAD context is done in `Seal::from_secret()`, but really it needs to be done as part of `PacketKey::from_secret()` to make sure every code path is covered, including the key update one which doesn't call `Seal::from_secret()`. It's not entirely clear why, but the problem (i.e. seal operation fail when trying to encrypt a packet) seems to only appear after several packets have already been encrypted with the new key, which is why this wasn't caught by the existing key update test. To cover that, the test is expanded by making the server send additional packets which from local testing seems to trigger the issue.
- Loading branch information
Showing
3 changed files
with
27 additions
and
15 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
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