@@ -35,11 +35,11 @@
tls::digests
tls::macs
tls::protocols
tls::version
 
-
tls::digest type ?-bin|-hex? ?-key hmac_key? [-file filename | -chan channel | ?-data? data]
+
tls::digest type ?options?
tls::md4 data
tls::md5 data
tls::sha1 data
tls::sha256 data
tls::sha512 data
@@ -77,11 +77,11 @@ tls::digests
tls::macs
tls::protocols
tls::version

-tls::digest type ?-bin|-hex? ?-key hmac_key? [-file filename | -chan channel | ?-data? data]
+tls::digest type ?options?
tls::md4 data
tls::md5 data
tls::sha1 data
tls::sha256 data
tls::sha512 data
@@ -459,22 +459,30 @@
tls::version
Returns the OpenSSL version string.

tls::digest type ?-bin|-hex? - ?-key hmac_key? [-file filename | -chan channel | ?-data? data]
+ ?-key hmac_key? [-file filename | -command cmdName | -chan channelId | ?-data? data]
Calculate the message digest for data or file filename using type hash algorithm. Returns value as a hex string - (default) or as a binary value with -bin option. Using - -chan option, a stacked channel is created and data read - from the channel is used to calculate a message digest with the result - returned with the last read operation before EOF. Use -key to - specify the key and return a Hashed Message Authentication Code (HMAC). - To salt a password, append or prepend the salt text to the password. - Type can be any OpenSSL supported hash algorithm including: md4, - md5, sha1, sha256, sha512, sha3-256, - etc. See tls::digests command for a full list.
+ (default) or as a binary value with -bin option. Use -key to + set the key and return a Hashed Message Authentication Code (HMAC). + To salt a password, append or prepend the salt data to the password. + Argument type can be any OpenSSL supported hash algorithm including: + md4, md5, sha1, sha256, sha512, + sha3-256, etc. See tls::digests command for a full list. +
+ Using the -chan option, a stacked channel is created and data + read from the channel is used to calculate a message digest with the + result returned with the last read operation before EOF. +
+ Using the -command option, a new command cmdName is + created and returned. To add data to the hash, call "cmdName + update data", where data is the data to add. When done, + call "cmdName finalize" to return the + message digest. +
tls::md4 data
Returns the MD4 message-digest for data as a hex string.
tls::md5 data