Utility Functions
These functions support number theory operations used in cryptographic primitives.
TinyCrypto.Utils.primes — FunctionReturn a vector of primes in the given integer range.
TinyCrypto.Utils.mod_inverse — FunctionCompute modular inverse using Fermat's Little Theorem (assumes prime p).
TinyCrypto.Utils.is_quadratic_residue — FunctionCheck if a is a quadratic residue mod p (assumes p is prime).
TinyCrypto.Utils.is_prime — FunctionCheck if an integer is prime.