-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core Add] Add support to Ed25519 #3507
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add ut for false verification?
sure |
verifier.BlockUpdate(message, 0, message.Length); | ||
return verifier.VerifySignature(signature); | ||
} | ||
catch (Exception) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I was talking only about ArgumentException, e.g. only about input data of invalid length and some other ArgumentException thrown by this part of code. However, catching any exception is a valid solution as far.
@roman-khimov, what do you think about cases when we should return true/false or FAULT VM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be both ways, but we need to know all of the exceptions that can happen in this block. Some are likely OK to be converted to false
result (invalid signature), some may not (verifier
constructor failure?). I'd expect some symmetry to ECDSA verification function. Like what happens if the key is wrong?
LGTM |
need approval |
@roman-khimov @AnnaShaleva i think neogo need to impl this as well, please take a look. |
Description
This pr adds support to Ed25519 as is suggested in #3506
Tested with test vectors from RFC 8032 (https://datatracker.ietf.org/doc/html/rfc8032)
Fixes # #3506
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: