From 91914209e7261881ed96a16c585ea086f7ade15b Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 13 Nov 2022 19:13:47 -0700 Subject: [PATCH] Re-export `signature` crate 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. --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 94c77bb..3089274 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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;