@@ -545,10 +545,20 @@ shared secret key. The cryptographic strength depends upon the size of the key and the security of the hash function used. It uses the same options as tls::digest, plus additional option -key to specify the key to use. To salt a password, append or prepend the salt data to the password. + +
tls::mac -cipher name + -digest name -key key ?-bin|-hex? + [-file filename | -command cmdName | + -chan channelId | -data data]
+
(OpenSSL 3.0+) Calculate the Message Authentication Code (MAC). MACs + are used to ensure authenticity and the integrity of data. It uses the + same options as tls::digest, plus the additional options + -cipher to specify the cipher to use, -digest to specify + the digest, and for certain ciphers, -key to specify the key.
tls::md4 data
Returns the MD4 message-digest for data as a hex string.
tls::md5 data