Skip to content
Snippets Groups Projects
Commit e5c1254e authored by Mihails VALTUSOVS's avatar Mihails VALTUSOVS :speech_balloon:
Browse files

expose the type aliases

parent 8a9267f3
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,8 @@ use super::astarzstar; ...@@ -2,8 +2,8 @@ use super::astarzstar;
use super::quadratic_residues::is_n; use super::quadratic_residues::is_n;
use num_bigint::{BigUint}; use num_bigint::{BigUint};
type Message = Vec<bool>; pub type Message = Vec<bool>;
type Ciphertext = Vec<BigUint>; pub type Ciphertext = Vec<BigUint>;
pub fn encrypt(message: &Message, n: &BigUint, y: &BigUint) -> Ciphertext { pub fn encrypt(message: &Message, n: &BigUint, y: &BigUint) -> Ciphertext {
let mut res: Ciphertext = Vec::<BigUint>::with_capacity(message.len()); let mut res: Ciphertext = Vec::<BigUint>::with_capacity(message.len());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment