[][src]Module amcl_wrapper::utils

Functions

barrett_reduction

Perform Barrett reduction given the params computed from barrett_reduction_params. Algorithm 14.42 from Handbook of Applied Cryptography

barrett_reduction_params

For a modulus returns k = number of bits in modulus u = floor(2^2k / modulus) v = 2^(k+1)

get_seeded_RNG
get_seeded_RNG_with_rng
hash_msg

Hash message and return output of size equal to curve modulus. Uses SHAKE to hash the message.