diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs index 07df332d..c074de0b 100644 --- a/openssl/src/sign.rs +++ b/openssl/src/sign.rs @@ -158,9 +158,8 @@ impl<'a> Signer<'a> { /// This method will fail if the buffer is not large enough for /// the signature, one can use `finish_len` to get an upper bound /// on the required size. - pub fn finish_into>(&self, mut buf: B) -> Result { + pub fn finish_into(&self, buf: &mut [u8]) -> Result { unsafe { - let buf = buf.as_mut(); let mut len = buf.len(); cvt(ffi::EVP_DigestSignFinal( self.md_ctx,