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

Adds hash subcommand #130

Merged
merged 2 commits into from
Jul 16, 2024
Merged

Adds hash subcommand #130

merged 2 commits into from
Jul 16, 2024

Conversation

popematt
Copy link
Contributor

Issue #, if available:

None

Description of changes:

Adds (experimental) hash subcommand.

This supports sha-256, sha-512, sha3-256, and sha3-512. We could easily add support for more hash algorithms from here.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.


for elem in reader.elements() {
let elem = elem?;
if let Some(hash) = args.get_one::<DigestType>("hash") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be inside the loop?

@popematt popematt merged commit c09c392 into amazon-ion:master Jul 16, 2024
4 checks passed
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.

2 participants