diff --git a/Cargo.toml b/Cargo.toml index 9c007b50..27975a83 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "curv-kzen" -version = "0.9.0" +version = "0.10.0" edition = "2018" authors = [ "Omer Shlomovits", diff --git a/src/arithmetic/samplable.rs b/src/arithmetic/samplable.rs index 8be7a47c..54c00c94 100644 --- a/src/arithmetic/samplable.rs +++ b/src/arithmetic/samplable.rs @@ -39,7 +39,7 @@ impl Samplable for BigInt { let bytes = (bit_size - 1) / 8 + 1; let mut buf: Vec = vec![0; bytes]; rng.fill_bytes(&mut buf); - BigInt::from_bytes(&*buf) >> (bytes * 8 - bit_size) + BigInt::from_bytes(&buf) >> (bytes * 8 - bit_size) } fn strict_sample(bit_size: usize) -> Self { diff --git a/src/elliptic/curves/p256.rs b/src/elliptic/curves/p256.rs index 41167045..a720640f 100644 --- a/src/elliptic/curves/p256.rs +++ b/src/elliptic/curves/p256.rs @@ -27,7 +27,7 @@ lazy_static::lazy_static! { g[0] = 0x04; g[1..33].copy_from_slice(&BASE_POINT2_X); g[33..].copy_from_slice(&BASE_POINT2_Y); - EncodedPoint::from_bytes(&g).unwrap() + EncodedPoint::from_bytes(g).unwrap() }; static ref BASE_POINT2: Secp256r1Point = Secp256r1Point {