arnaucube
arnaucube/shamirsecretsharingPublic Self-hosted repository
Enable benchmarkin comparison between mod_inv_impl.

Added `pub` visibility mark to `mod_inverse()`
fn to be able to benchmark it.
kr0 c.perezbaro@gmail.com
Fri, 19 Jul 2019 11:05:20 +0200
commit

fe2367290c25f1b9a40cb26c563df2f847280a02

parent

79f06be242c62a2cb440a41b3e83c9567739f8b6

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M shamirsecretsharing-rs/src/lib.rs → shamirsecretsharing-rs/src/lib.rs

@@ -75,7 +75,7 @@ }

(shares, is) } -fn mod_inverse(a: BigInt, module: BigInt) -> BigInt { +pub fn mod_inverse(a: BigInt, module: BigInt) -> BigInt { // TODO search biguint impl of mod_inv let mut mn = (module.clone(), a); let mut xy: (BigInt, BigInt) = (Zero::zero(), One::one());

@@ -221,6 +221,7 @@

#[cfg(test)] mod tests { + use super::*; use std::str::FromStr;