From d0a755a35473efb8024d27d3db8dc25c785f65d3 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 13 Nov 2022 20:25:44 -0700 Subject: [PATCH] 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. --- src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 94c77bbf..30892743 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;