Re-export signature crate (#223)

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.
This commit is contained in:
Tony Arcieri 2022-11-13 20:25:44 -07:00 committed by GitHub
parent 6800df5b37
commit d0a755a354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
//!
@ -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();
//!
@ -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;