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:
parent
6800df5b37
commit
d0a755a354
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user