Index: doc/cryptography.html ================================================================== --- doc/cryptography.html +++ doc/cryptography.html @@ -22,10 +22,11 @@
The following options are used by the cryptography commands.
set ch [open test_file.txt rb]
::tls::digest -digest sha256 -chan $ch
- set dat ""
- while {![eof $ch]} {append dat [read $ch 4096]}
+ set data ""
+ while {![eof $ch]} {append data [read $ch 4096]}
close $ch
- puts $dat
+ puts $data
set cmd [::tls::digest -digest sha256 -command ::tls::temp]
- set dat ""
- append dat [$cmd update "Some data. "]
- append dat [$cmd update "More data."]
- append dat [$cmd finalize]
- puts $dat
+ set data ""
+ append data [$cmd update "Some data. "]
+ append data [$cmd update "More data."]
+ append data [$cmd finalize]
+ puts $data
+
+ nid Internal id of cipher. This is the same as name. + name Name or alias of the cipher. + description Description of the cipher. OpenSSL 3.0+ only. + block_size Block size of the cipher. Stream ciphers are set to 1. + key_length key length of a cipher in bytes. + iv_length IV length of a cipher in bytes or 0 if not used. + type Base type of this cipher or undefined if none. + provider Provider of the cipher. OpenSSL 3.0+ only. + mode Block cipher mode or stream for a stream cipher. + flags Flags associated with the cipher. Includes: Variable Length, AEAD Cipher, Non FIPS Allow, etc.
+
+ name Name or alias of the digest. + description Description of the digest. OpenSSL 3.0+ only. + size Size of the digest in bits. + block_size Block size of digest in bytes. + provider Provider of the digest. OpenSSL 3.0+ only. + type Base type of this digest or undefined if none. + pkey_type Pkey associated with digest. + flags Flags associated with the digest. Includes: One-shot, XOF, etc.
+
+ -N The CPU/Memory cost parameter + must be larger than 1, a power of 2, and less than + 2^(128 * r / 8). Default is 1048576. + -r The blockSize parameter specifies the + block size. Must be greater than 0. Default is 8. + -p The parallelization parameter + must be a positive integer less than or equal + to ((2^32-1) * 32) / (128 * r). Default is 1.