Module classic_crypto::util [−][src]
Expand description
Contains functions that are used across the library
Modules
prime_gen |
Functions
blocks | Remove all whitespace then seperate each block of |
extended_gcd | Performs the extended euclidean algorithm on |
fill_alphabet_continue | Returns a vector of size |
fill_alphabet_from_start | Returns a vector of size |
fill_consecutive_vec | Fills a Vec |
fill_random_array | Fills a Vec |
find_order | Generates a permutation of the range |
gcd | Calculates the greatest common divisor (gcd) of |
invert | Inverts a substitution alphabet (a |
is_unique | Returns true if the string contains any repeated characters |
mmi | Calculates the modular multiplicative inverse ( |
modulo | Performs the modulo operation, but ensures a positive result,
so that it functions for negative numbers by wrapping around
the modulus |
shuffle | Shuffles the elements of a vector |