@@ -29,13 +29,19 @@
tls::status ?-local? channel
tls::connection channel
tls::import channel ?options?
tls::unimport channel
- tls::ciphers protocol ?verbose? ?supported?
+ tls::ciphers protocol ?verbose? ?supported?
tls::protocols
tls::version
+
+ tls::hash type data
+ tls::md4 data
+ tls::md5 data
+ tls::sha1 data
+ tls::sha256 data
COMMANDS
CALLBACK OPTIONS
HTTPS EXAMPLE
@@ -50,11 +56,11 @@
tls - binding to OpenSSL
toolkit.
-package require Tcl 8.4
+
package require Tcl 8.5
package require tls
tls::init ?options?
tls::socket ?options? host port
tls::socket ?-server command? ?options? port
@@ -63,12 +69,18 @@
tls::handshake channel
tls::import channel ?options?
tls::unimport channel
tls::ciphers protocol ?verbose? ?supported?
-tls::protocols
-tls::version
+tls::protocols
+tls::version
+
+tls::hash type data
+tls::md4 data
+tls::md5 data
+tls::sha1 data
+tls::sha256 data
This extension provides a generic binding to tls1.3. Exact list depends on OpenSSL version and
compile time flags.
tls::version
Returns the OpenSSL version string.
+
+
+ tls::hash type data
+ Calculate the hash for data using type digest.
+ Returns value as a hex string. Type cam be any OpenSSL supported
+ hash digest including: md4, md5, sha1,
+ sha2 (sha224, sha256, sha384, sha512,
+ sha512-224, and sha512-256),
+ sha3 (sha3-224, sha3-256, sha3-384, and sha3-512), etc.
+
+ tls::md4 data
+ Calculate the hash for data using the MD4 message-digest algorithm.
+
+ tls::md5 data
+ Calculate the hash for data using the MD5 message-digest algorithm.
+
+ tls::sha1 data
+ Calculate the hash for data using the SHA-1 secure hash algorithm.
+
+ tls::sha256 data
+ Calculate the hash for data using the SHA-2 SHA-256 secure hash algorithm.