-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate packet numbers from a single sequence
Instead of keeping separate sequences for each packet number space, use the same sequence. This is needed to make it easier to support FIPS. This is because FIPS mandates that the crypto module (e.g. BoringCrypto) has to validate that the AEAD counter (which in QUIC corresponds to the packet number) is stricly monotonically increasing (so that counters are not reused). Because BoringCrypto saves the counter inside its own AEAD context, and because new paths currently require starting from packet number 0 again, the FIPS requirement would require us to maintain separate AEAD contexts for each path, which we currently don't do (and would probably be messy to implement). This reverts commit 40e2433.
- Loading branch information
Showing
2 changed files
with
15 additions
and
14 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