refactor!: accept message content instead of digest for sign and verify#101
refactor!: accept message content instead of digest for sign and verify#101SteveLasker merged 19 commits intoveraison:mainfrom
Conversation
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Codecov Report
@@ Coverage Diff @@
## main #101 +/- ##
==========================================
+ Coverage 89.48% 92.10% +2.61%
==========================================
Files 10 10
Lines 1018 975 -43
==========================================
- Hits 911 898 -13
+ Misses 72 51 -21
+ Partials 35 26 -9
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
|
If I'm not mistaken, one could previously register a custom algorithm and reuse the built-in signers. This PR removes this capability. Is this intentional? |
Signed-off-by: Shiwei Zhang <shizh@microsoft.com>
Previously, we needed to register the external algorithm to access hash algorithms. Now, we don't need them since the digests are computed by the External algorithm implementors can implement the |
You are right, I though a caller could instantiate a built-in signer with a custom algorithm, but it is not possible, so we are fine 😄 . |
qmuntal
left a comment
There was a problem hiding this comment.
I was not fond of RegisterAlgorithm, so LGTM++!
Resolves #100
Changes:
Sign()in theSignerinterface accepts message content instead of digest.Verify()in theVerifierinterface accepts message content instead of digest.