diff options
Diffstat (limited to 'openssl/src/sign.rs')
-rw-r--r-- | openssl/src/sign.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs index 4a0af9d7..2d8b5887 100644 --- a/openssl/src/sign.rs +++ b/openssl/src/sign.rs @@ -26,7 +26,7 @@ //! let mut signer = Signer::new(MessageDigest::sha256(), &keypair).unwrap(); //! signer.update(data).unwrap(); //! signer.update(data2).unwrap(); -//! let signature = signer.finish().unwrap(); +//! let signature = signer.sign_to_vec().unwrap(); //! //! // Verify the data //! let mut verifier = Verifier::new(MessageDigest::sha256(), &keypair).unwrap(); @@ -202,11 +202,6 @@ impl<'a> Signer<'a> { buf.truncate(len); Ok(buf) } - - #[deprecated(since = "0.9.23", note = "renamed to sign_to_vec")] - pub fn finish(&self) -> Result<Vec<u8>, ErrorStack> { - self.sign_to_vec() - } } impl<'a> Write for Signer<'a> { @@ -314,11 +309,6 @@ impl<'a> Verifier<'a> { } } } - - #[deprecated(since = "0.9.23", note = "renamed to `verify`")] - pub fn finish(&self, signature: &[u8]) -> Result<bool, ErrorStack> { - self.verify(signature) - } } impl<'a> Write for Verifier<'a> { |