summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/backend/nettle.rs
diff options
context:
space:
mode:
authorIgor Matuszewski <igor@sequoia-pgp.org>2020-04-10 00:03:01 +0200
committerIgor Matuszewski <igor@sequoia-pgp.org>2020-06-22 11:57:06 +0200
commitdf5eb44e8e442c5bc4d958d914121075258393ec (patch)
treef5106537792d08b7b33920aa5467f0dedae91121 /openpgp/src/crypto/backend/nettle.rs
parentbaf6f108b94f7e7b3a2ec12396e9bfbbd67c76ee (diff)
openpgp: Move Nettle asymmetric impls to the backend module
Diffstat (limited to 'openpgp/src/crypto/backend/nettle.rs')
-rw-r--r--openpgp/src/crypto/backend/nettle.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/crypto/backend/nettle.rs b/openpgp/src/crypto/backend/nettle.rs
index 5c0149fc..e7614445 100644
--- a/openpgp/src/crypto/backend/nettle.rs
+++ b/openpgp/src/crypto/backend/nettle.rs
@@ -2,6 +2,8 @@
use nettle::random::{Random, Yarrow};
+pub mod asymmetric;
+
/// Fills the given buffer with random data.
pub fn random<B: AsMut<[u8]>>(mut buf: B) {
Yarrow::default().random(buf.as_mut());