-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add UseDigestTo* marker trait and blanket Sign/Verify impls
This commit makes the digest for `SignDigest` and `VerifyDigest` an associated type rather than a generic, and also adds two marker traits: - `UseDigestToSign`: opt into blanket impl of `Sign` for `SignDigest` - `UseDigestToVerify`: opt into blanket impl of `Verify` for `VerifyDigest` The reason for requiring a marker trait is there are cases where the same keys can be used with an IUF mode of an algorithm which is distinct from the non-IUF form, e.g. Ed25519 vs Ed25519ph. In this case, the underlying keys are the same, but the signature algorithm when using the IUF mode is distinct.
- Loading branch information
Showing
5 changed files
with
48 additions
and
11 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
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