Skip to content
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

Added functions to the SigninKey and to the VeryKey classes for signe… #197

Merged
merged 1 commit into from Sep 7, 2019

Conversation

qutorial
Copy link
Contributor

@qutorial qutorial commented Jun 9, 2019

…d messages

Added functions sign_full and verify_full to work with messages combined with
their signatures, in comparison to the sign and verify.

The original interface works with detached signatures. Some of the users
might be used to work with a combination of a signature and a message.

This commit enables this opportunity.

…d messages

Added functions sign_full and verify_full to work with messages combined with
their signatures, in comparison to the sign and verify.
# @param message [String] Message to be signed by this key
#
# @return [String] Signature and the message as bytes
def sign_full(message)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the provided functionality is attached signatures, I think a name like sign_attached (and and correspondingly verify_attached) would make more sense.

@tarcieri
Copy link
Contributor

tarcieri commented Aug 1, 2019

FYI, I'm still interested in merging this, however I'd like the method names changed if you agree

@tarcieri tarcieri merged commit abe551a into RubyCrypto:master Sep 7, 2019
@tarcieri tarcieri mentioned this pull request Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants