Index: doc/tls.html ================================================================== --- doc/tls.html +++ doc/tls.html @@ -33,11 +33,11 @@ <dt> </dt> <dd><b>tls::ciphers</b> <em>?protocol? ?verbose? ?supported?</em></dd> <dd><b>tls::protocols</b></dd> <dd><b>tls::version</b></dd> <dt> </dt> - <dd><b>tls::digest</b> <em>type ?-bin|-hex? [-file filename | -chan channel | ?-data? data]</em></dd> + <dd><b>tls::digest</b> <em>type ?-bin|-hex? ?-key hmac_key? [-file filename | -chan channel | ?-data? data]</em></dd> <dd><b>tls::digests</b></dd> <dd><b>tls::md4</b> <em>data</em></dd> <dd><b>tls::md5</b> <em>data</em></dd> <dd><b>tls::sha1</b> <em>data</em></dd> <dd><b>tls::sha256</b> <em>data</em></dd> @@ -73,11 +73,11 @@ <br> <a href="#tls::ciphers"><b>tls::ciphers</b> <i>?protocol? ?verbose? ?supported?</i></a><br> <a href="#tls::protocols"><b>tls::protocols</b></a><br> <a href="#tls::version"><b>tls::version</b></a><br> <br> -<a href="#tls::digest"><b>tls::digest</b> <i>type ?-bin|-hex? [-file filename | -chan channel | ?-data? data]</i></a><br> +<a href="#tls::digest"><b>tls::digest</b> <i>type ?-bin|-hex? ?-key hmac_key? [-file filename | -chan channel | ?-data? data]</i></a><br> <a href="#tls::digests"><b>tls::digests</b></a><br> <a href="#tls::md4"><b>tls::md4</b> <i>data</i></a><br> <a href="#tls::md5"><b>tls::md5</b> <i>data</i></a><br> <a href="#tls::sha1"><b>tls::sha1</b> <i>data</i></a><br> <a href="#tls::sha256"><b>tls::sha256</b> <i>data</i></a><br> @@ -448,20 +448,21 @@ <dt><a name="tls::version"><strong>tls::version</strong></a></dt> <dd>Returns the OpenSSL version string.</dd> <br> <dt><a name="tls::digest"><strong>tls::digest</strong> <em>type ?-bin|-hex? - [-file filename | -chan channel | ?-data? data]</em></a></dt> + ?-key hmac_key? [-file filename | -chan channel | ?-data? data]</em></a></dt> <dd>Calculate the message digest for <em>data</em> or file <em>filename</em> using <em>type</em> hash algorithm. Returns value as a hex string (default) or as a binary value with <em>-bin</em> option. Using <em>-chan</em> 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. Type can be - any OpenSSL supported hash algorithm including: <b>md4</b>, <b>md5</b>, - <b>sha1</b>, <b>sha256</b>, <b>sha512</b>, <b>sha3-256</b>, etc. - See <b>tls::digests</b> command for a full list.</dd> + returned with the last read operation before EOF. Use <em>-key</em> to + specify the key and return a Hashed Message Authentication Code (HMAC). + Type can be any OpenSSL supported hash algorithm including: <b>md4</b>, + <b>md5</b>, <b>sha1</b>, <b>sha256</b>, <b>sha512</b>, <b>sha3-256</b>, + etc. See <b>tls::digests</b> command for a full list.</dd> <dt><a name="tls::digests"><strong>tls::digests</strong></a></dt> <dd>Returns a list of the hash algorithms for <b>tls::digest</b> command.</dd> <dt><a name="tls::md4"><strong>tls::md4</strong> <em>data</em></a></dt>