Skip to content

Commit

Permalink
Re-export signature crate (#223)
Browse files Browse the repository at this point in the history
It's needed to use the `SigningKey`/`VerifyingKey` types in the
`pkcs1v15` and `pss` modules.

Also updates the code examples to use the re-export.
  • Loading branch information
tarcieri authored Nov 14, 2022
1 parent 6800df5 commit d0a755a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
//! ```
//! use rsa::RsaPrivateKey;
//! use rsa::pkcs1v15::{SigningKey, VerifyingKey};
//! use rsa::signature::{RandomizedSigner, Signature, Verifier};
//! use sha2::{Digest, Sha256};
//! use signature::{RandomizedSigner, Signature, Verifier};
//!
//! let mut rng = rand::thread_rng();
//!
Expand All @@ -82,8 +82,8 @@
//! ```
//! use rsa::RsaPrivateKey;
//! use rsa::pss::{BlindedSigningKey, VerifyingKey};
//! use rsa::signature::{RandomizedSigner, Signature, Verifier};
//! use sha2::{Digest, Sha256};
//! use signature::{RandomizedSigner, Signature, Verifier};
//!
//! let mut rng = rand::thread_rng();
//!
Expand Down Expand Up @@ -210,6 +210,7 @@ extern crate std;

pub use num_bigint::BigUint;
pub use rand_core;
pub use signature;

pub mod algorithms;
pub mod errors;
Expand Down

0 comments on commit d0a755a

Please sign in to comment.