-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3165 from keks/fix-hmac_drbg
fix HMAC_DRBG edge case
- Loading branch information
Showing
4 changed files
with
58 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
go/common/crypto/drbg: Also consider empty slices as Null values | ||
|
||
The wrong handling of an edge case in the HMAC_DRBG implementation has been | ||
corrected. An update with empty `additional_data` now behaves the same as an | ||
update with nil additional data. While the spec is not 100% clear around how | ||
this is to be treated, supplemental documentation suggests that this is the | ||
correct way to handle it. | ||
|
||
Oasis code never uses HMAC_DRNG with a non-nil empty `additional_data` | ||
parameter, so nothing changes for Oasis users. |
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