[go: up one dir, main page]

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 rand's OsRng. Length must be >= 1.