1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo_small.png")]
extern crate num_bigint_dig as num_bigint;
extern crate num_integer;
extern crate num_traits;
#[macro_use]
extern crate lazy_static;
extern crate byteorder;
#[macro_use]
extern crate failure;
#[cfg(test)]
extern crate base64;
#[cfg(test)]
extern crate hex;
extern crate num_iter;
extern crate rand;
#[cfg(test)]
extern crate sha1;
extern crate subtle;

pub mod prime;
pub use prime_rand::RandPrime;
pub mod errors;
pub mod padding;
pub use key::{PublicKey, RSAPrivateKey, RSAPublicKey};
pub mod hash;

mod algorithms;
mod key;
mod math;
mod pkcs1v15;
mod prime_rand;