diff options
Diffstat (limited to 'openpgp/src/crypto')
-rw-r--r-- | openpgp/src/crypto/mem.rs | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/mod.rs | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/openpgp/src/crypto/mem.rs b/openpgp/src/crypto/mem.rs index 1bfec9a9..780db044 100644 --- a/openpgp/src/crypto/mem.rs +++ b/openpgp/src/crypto/mem.rs @@ -31,7 +31,7 @@ impl Hash for Protected { impl Protected { /// Converts to a buffer for modification. - pub unsafe fn into_vec(self) -> Vec<u8> { + pub(crate) unsafe fn into_vec(self) -> Vec<u8> { self.iter().cloned().collect() } } diff --git a/openpgp/src/crypto/mod.rs b/openpgp/src/crypto/mod.rs index e4b26810..904eaea2 100644 --- a/openpgp/src/crypto/mod.rs +++ b/openpgp/src/crypto/mod.rs @@ -47,11 +47,6 @@ impl SessionKey { random(&mut sk); Self(sk) } - - /// Converts to a buffer for modification. - pub unsafe fn into_vec(self) -> Vec<u8> { - self.0.into_vec() - } } impl Deref for SessionKey { |