Index: doc/cryptography.html ================================================================== --- doc/cryptography.html +++ doc/cryptography.html @@ -43,10 +43,12 @@
tls::decrypt -cipher name -key key ?options?
 
tls::hkdf -digest digest -key key ?options?
tls::pbkdf2 -size length -digest digest ?options?
tls::scrypt -password string -salt string ?options?
+
 
+
tls::random ?-private? length
OPTIONS
COMMANDS
GLOSSARY
@@ -95,10 +97,13 @@ tls::decrypt -cipher name -key key ?options?

tls::hkdf -digest digest -key key ?options?
tls::pbkdf2 -size length -digest digest ?options?
tls::scrypt -password string -salt string ?options?
+
+tls::random ?-private? length
+


OPTIONS

@@ -539,10 +544,25 @@ block size. Must be greater than 0. Default is 8. -pThe parallelization parameter must be a positive integer less than or equal to ((2^32-1) * 32) / (128 * r). Default is 1. + +
+ +

Random Bytes Commands

+These commands provide randomly generated byte strings. +
+
+
tls::random + ?-private? length
+
Generate length random bytes using a cryptographically secure + pseudo random generator (CSPRNG). OpenSSL uses a security level of 256 + bits. Will return an error if a trusted entropy source such as the OS + isn't available. Use -private option if the values are intended + to remain private in case the public PRNG is compromised.
+

GLOSSARY