-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: update key manager hasher labels (#6329)
Description --- Updates key manager hasher labels used in cipher seeds. Improves the ordering of MAC input data. Closes #6328. Motivation and Context --- The hasher labels used for cipher seeds are vaguely named, which seems like an unnecessary footgun. This PR updates them, incrementing to a new cipher seed version. We also take the opportunity of a new version to reorganize how cipher seed MAC input data is ordered; specifically, we move the version byte to the front, which is more in line with its use elsewhere. This doesn't impose any particular security concerns (the MAC input data is never directly parsed), but had a bad smell. How Has This Been Tested? --- Tests pass. What process can a PR reviewer use to test or verify this change? --- Check that the naming change and reordering do what they say on the tin. Breaking Changes --- Because the library only supports the most recent cipher seed version, existing cipher seeds will fail to decrypt. BREAKING CHANGE: Changes the construction of cipher seeds via a new version; older cipher seeds will fail to decrypt.
- Loading branch information
1 parent
f851125
commit ae63bab
Showing
3 changed files
with
26 additions
and
22 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