>From Stack Overflow and "What key is used by openssl (command) for
HMAC if key is not passed in as argument",
https://stackoverflow.com/questions/25492833/what-key-is-used-by-openssl-command-for-hmac-if-key-is-not-passed-in-as-argume.

The docs don't specify the behavior for the following:

   echo -n "data" | opnessl dgst -sha256 -hmac

This patch addresses the use case.

**********

$ git diff doc/apps/dgst.pod
diff --git a/doc/apps/dgst.pod b/doc/apps/dgst.pod
index ebe0ffb..5b0f16a 100644
--- a/doc/apps/dgst.pod
+++ b/doc/apps/dgst.pod
@@ -99,7 +99,8 @@ the actual signature to verify.

 =item B<-hmac key>

-create a hashed MAC using "key".
+create a hashed MAC using "key". If "key" is not present, then a standard hash
+is used; and not a HMAC with a default key.

 =item B<-mac alg>

diff --git a/doc/apps/dgst.pod b/doc/apps/dgst.pod
index ebe0ffb..5b0f16a 100644
--- a/doc/apps/dgst.pod
+++ b/doc/apps/dgst.pod
@@ -99,7 +99,8 @@ the actual signature to verify.
 
 =item B<-hmac key>
 
-create a hashed MAC using "key".
+create a hashed MAC using "key". If "key" is not present, then a standard hash
+is used; and not a HMAC with a default key.
 
 =item B<-mac alg>
 

Reply via email to