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
Return self on calls to update #1287
Comments
I'm strongly -1 on this, returning On Sat, Jul 26, 2014 at 5:09 PM, Paul Kehrer notifications@github.com
"I disapprove of what you say, but I will defend to the death your right to |
I was the one who made the original suggestion, but after thinking about it a bit more I'd like to propose something different. The asymmetric key classes could have sign() and verify() functions in addition to signer() and verifier(). They would take the same arguments as signer/verifier plus an additional "data" argument and would do the equivalent of signer/verifier, update, and finalize all in one call (returning the signature). In cases where you needed to sign or verify a single block of data, this would be the preferred API. In cases where you wanted to feed the data in as multiple blocks, the existing API would be used. |
I feel like this would simplify a commonly used function, and that many applications only expect a single large code block, so it makes sense to me that standalone sign/verify methods would be useful. I'm happy to work on this if others agree. |
We've got a lot of APIs that are exclusively streaming right now (symmetric On Fri, Sep 26, 2014 at 5:54 PM, michael-hart notifications@github.com
"I disapprove of what you say, but I will defend to the death your right to |
Closing this in favor of the new issue that captures the current proposal. |
From the mailing list:
The text was updated successfully, but these errors were encountered: