Skip to content

Commit

Permalink
fix: failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xisk committed Aug 8, 2024
1 parent d9036be commit fbc397a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"ciphertext",
"Goldwasser",
"Micali",
"probabilisticpubkey"
"probabilistic-encryption"
]
}
2 changes: 1 addition & 1 deletion packages/probabilistic-encryption/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "probabilistic-encryption"
version = "0.1.0"
authors = ["Carlos Rodriguez-Vega <[email protected]>"]
edition = "2018"
src = "https://github.com/crodriguezvega/probabilisticpubkey?tab=readme-ov-file"
src = "https://github.com/crodriguezvega/probabilistic-encryption?tab=readme-ov-file"

[dependencies]
bitvec = "0.20"
Expand Down
4 changes: 2 additions & 2 deletions packages/probabilistic-encryption/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# probabilisticpubkey
# probabilistic-encryption

[![Build Status](https://travis-ci.org/crodriguezvega/probabilisticpubkey.svg?branch=master)](https://travis-ci.org/crodriguezvega/probabilisticpubkey)
[![Build Status](https://travis-ci.org/crodriguezvega/probabilistic-encryption.svg?branch=master)](https://travis-ci.org/crodriguezvega/probabilistic-encryption)

Probabilistic public-key crypto systems in Rust. Implementations of Goldwasser-Micali and Blum-Goldwasser algorithms as described in [chapter 8](http://cacr.uwaterloo.ca/hac/about/chap8.pdf) of "Handbook of Applied Cryptography" by Alfred J. Menezes et al.

Expand Down
2 changes: 1 addition & 1 deletion packages/probabilistic-encryption/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! # Probabilistic publick-key cryptography
//!
//! `probabilisticpubkey` consists of implementations for the Goldwasser-Micali
//! `probabilistic-encryption` consists of implementations for the Goldwasser-Micali
//! and Blum-Goldwasser probabilistic public-key systems.
extern crate bitvec;
Expand Down
8 changes: 4 additions & 4 deletions packages/probabilistic-encryption/src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use num_traits::{One, Zero};
/// # extern crate num_bigint;
/// # fn main() {
/// use num_bigint::BigUint;
/// use probabilisticpubkey::number;
/// use probabilistic_encryption::number;
///
/// assert_eq!(number::as_power_of_two_and_odd(&BigUint::from(256usize)), (8, BigUint::from(1usize)));
/// assert_eq!(number::as_power_of_two_and_odd(&BigUint::from(137usize)), (0, BigUint::from(137usize)));
Expand Down Expand Up @@ -67,7 +67,7 @@ fn is_power_of_two(n: &BigUint) -> bool {
/// # extern crate num_bigint;
/// # fn main() {
/// use num_bigint::{BigUint, BigInt};
/// use probabilisticpubkey::number;
/// use probabilistic_encryption::number;
///
/// let a = BigUint::from(73usize);
/// let b = BigUint::from(56usize);
Expand Down Expand Up @@ -143,7 +143,7 @@ pub enum JacobiSymbol {
/// # extern crate num_bigint;
/// # fn main() {
/// use num_bigint::BigUint;
/// use probabilisticpubkey::number;
/// use probabilistic_encryption::number;
///
/// let a = BigUint::from(256usize);
/// let n = BigUint::from(4211usize);
Expand Down Expand Up @@ -220,7 +220,7 @@ pub fn jacobi_symbol(a: &BigUint, n: &BigUint) -> JacobiSymbol {
/// # extern crate num_bigint;
/// # fn main() {
/// use num_bigint::BigUint;
/// use probabilisticpubkey::number;
/// use probabilistic_encryption::number;
///
/// let a1 = BigUint::from(128usize);
/// let n1 = BigUint::from(3253usize);
Expand Down
2 changes: 1 addition & 1 deletion packages/probabilistic-encryption/src/prime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use rand::thread_rng;
/// # extern crate num_bigint;
/// # fn main() {
/// use num_bigint::BigUint;
/// use probabilisticpubkey::prime;
/// use probabilistic_encryption::prime;
///
/// assert_eq!(prime::is_probably_prime(&BigUint::from(128usize)), false);
/// assert_eq!(prime::is_probably_prime(&BigUint::from(2969usize)), true);
Expand Down

0 comments on commit fbc397a

Please sign in to comment.