Module orion::util [] [src]

Utility functions such as generating a cryptographically strong key/nonce/salt/iv.

Functions

gen_rand_key

Return a random byte vector of a given length. This uses the rand crate, which means that random data is read from the OS source /dev/urandom or CryptGenRandom().