-
Notifications
You must be signed in to change notification settings - Fork 167
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
Support SHA-3 hash functions #271
Conversation
I wonder if we can use something better than class name. e.g. constant. |
Maybe have |
Maybe it works, but I can't figure out how to implements this. In addtion, there is a 'name' method there: |
Can this help you? |
how about this,
which is better than original code
|
how about this code:
|
I still think using constant is better, @mame what do you think? |
Maybe someone else can help support SHA-3 hash functions in ruby. |
So, for each class, you need to write something like:
Then, in the method to create it, you need to use:
Does that make sense? |
@yuan-xy you are very close to having a workable solution. Let me know if you'd like to finish this off. |
I’m on a long vacation, I will figure out how to finish it after vacation.
在 2019年9月28日,05:29,Samuel Williams <notifications@github.com<mailto:notifications@github.com>> 写道:
@yuan-xy<https://github.com/yuan-xy> you are very close to having a workable solution. Let me know if you'd like to finish this off.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#271?email_source=notifications&email_token=AAC55MX7OLQ3FX4ZZSG5TJ3QLZ3NHA5CNFSM4ISSOHB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD72EOII#issuecomment-536102689>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAC55MQ62247AGHOSJJLQBLQLZ3NHANCNFSM4ISSOHBQ>.
|
After many attempts, I still don't know how to implement it use
|
add SHA3_224, SHA3_256, SHA3_384 and SHA3_512 class under OpenSSL::Digest module.