diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-07-02 18:43:17 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-07-02 19:02:15 +0200 |
commit | 92371c26e33119d2ea162d9a8bfdabe45f9400ec (patch) | |
tree | 76d6b985f72745a1034603efc177084ae6bbfd77 /openpgp-ffi/src/crypto.rs | |
parent | 679b3631aa40663bd23778fc4776c3da8ba3cef0 (diff) |
openpgp: Simplify SessionKey::new.
Diffstat (limited to 'openpgp-ffi/src/crypto.rs')
-rw-r--r-- | openpgp-ffi/src/crypto.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp-ffi/src/crypto.rs b/openpgp-ffi/src/crypto.rs index 94e1a81d..19f53859 100644 --- a/openpgp-ffi/src/crypto.rs +++ b/openpgp-ffi/src/crypto.rs @@ -5,7 +5,6 @@ //! [`sequoia-openpgp::crypto`]: ../../sequoia_openpgp/crypto/index.html use libc::size_t; -use nettle::Yarrow; extern crate sequoia_openpgp as openpgp; use self::openpgp::{ @@ -26,7 +25,7 @@ pub struct SessionKey(openpgp::crypto::SessionKey); /// Creates a new session key. #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" fn pgp_session_key_new(size: size_t) -> *mut SessionKey { - openpgp::crypto::SessionKey::new(&mut Yarrow::default(), size) + openpgp::crypto::SessionKey::new(size) .move_into_raw() } |