-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add support for crypto/dsa #135
Conversation
Do we care, given DSA is now legacy and unapproved for most usecases? |
Unfortunately, with Microsoft Go we need to implement some legacy algorithms using CNG/OpenSSL because of how Microsoft's internal crypto policy and our fork's high compatibility goals interact. We don't think that this is something every fork needs to do, but we need this support in the library for our own fork. It isn't a top priority for us at the moment, but it's something we currently do think we need to get done eventually. /cc @gdams |
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.
Some Q's because I don't understand Go that well :-) and some suggested nitpicks.
Co-authored-by: Martijn Verburg <[email protected]>
@ueno would be great to have your eyes on this as well. |
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.
A few surface-level suggestions.
Co-authored-by: Davis Goodin <[email protected]>
Co-authored-by: Davis Goodin <[email protected]>
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.
Looks good to me.
return evpSign(priv.withKey, 0, 0, 0, hash) | ||
} | ||
|
||
// VerifyDSA verifiessig using the public key, pub. |
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.
"verifies sig" ?
@derekparker Can we get a re-review when you get a chance? |
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.
LGTM
This PR implements the necessary functions to support crypto/dsa.