-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v2] Check signature details of binding signatures (#218)
Check the hash algorithm, creation time, signature notations, and signature expiry (when relevant) of binding signatures when using keys. To be able to check that all critical signature notations are known, and the hash algorithm used is valid, we add `config` parameters to all functions on the path to verifying key binding signatures in v2. By default, we reject binding signatures using MD5 and RIPEMD-160, but this can be modified by setting the new `config.RejectHashAlgorithms` property. In the future, we should also reject binding signatures using SHA-1, but this would be a larger breaking change. Co-authored-by: Lukas Burkhalter <[email protected]>
- Loading branch information
Showing
10 changed files
with
147 additions
and
83 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
cd gosop | ||
echo "replace github.com/ProtonMail/go-crypto => ../go-crypto" >> go.mod | ||
go get github.com/ProtonMail/go-crypto | ||
go get github.com/ProtonMail/gopenpgp/v3/crypto@80762a9ce60ba09d8a0d4f7b2a9a9665e7716351 | ||
go get github.com/ProtonMail/gopenpgp/v3/crypto@db2db2c2cd366696183a2d3cf6fea63eb679e54c | ||
go build . |
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
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
Oops, something went wrong.