-
Notifications
You must be signed in to change notification settings - Fork 141
Implement dgst CLI command #2638
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
base: main
Are you sure you want to change the base?
Conversation
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.
clang-tidy made some suggestions
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2638 +/- ##
==========================================
+ Coverage 78.83% 78.89% +0.06%
==========================================
Files 667 667
Lines 114077 114332 +255
Branches 16045 16085 +40
==========================================
+ Hits 89932 90203 +271
+ Misses 23370 23349 -21
- Partials 775 780 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
tool-openssl/dgst.cc
Outdated
for (size_t i = 0; i < data.size(); i++) { | ||
BIO_printf(out_bio.get(), "%02x", data[i]); | ||
} | ||
BIO_printf(out_bio.get(), "\n"); |
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.
Could you just use BIO_hexdump
here?
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.
No unfortunately. We need a raw hex dump but BIO_hexdump
has a special formatting that looks something like this -- OFFSET HEX_BYTES |ASCII|
Issues:
Resolves #CryptoAlg-3383
Description of changes:
Re-implement dgst cli commands with the following options:
-binary
-sha256 (and a handful of other digest algorithms)
-sigopt
-passin
-sign
-out
-verify
-signature
-keyform
Call-outs:
Waiting for #2555 to implement
-passin
Testing:
How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.