Module orion::core::util[][src]

Utility functions such as constant time comparison.

Functions

compare_ct

Compare two equal length slices in constant time, using the constant_time_eq crate.

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(). Length must be >= 1.