From a0b5727028ef7c5366f1076f775a2745c697e9c0 Mon Sep 17 00:00:00 2001 From: Spencer Bartholomew <38776747+spencerbart@users.noreply.github.com> Date: Fri, 16 Jun 2023 22:34:20 -0600 Subject: [PATCH 1/2] fix doc example so that it works --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ae91eb65..1568984d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,7 @@ //! //! ## OAEP encryption //! ``` -//! use rsa::{RsaPrivateKey, RsaPublicKey, Oaep}; +//! use rsa::{RsaPrivateKey, RsaPublicKey, Oaep, sha2}; //! //! let mut rng = rand::thread_rng(); //! From 0ac258f79ac0114004936742e279dded906c9905 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Fri, 8 Sep 2023 09:20:00 -0600 Subject: [PATCH 2/2] Update src/lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1568984d..7ba5c6e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,7 @@ //! //! ## OAEP encryption //! ``` -//! use rsa::{RsaPrivateKey, RsaPublicKey, Oaep, sha2}; +//! use rsa::{RsaPrivateKey, RsaPublicKey, Oaep, sha2::Sha256}; //! //! let mut rng = rand::thread_rng(); //!