summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/asymmetric.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-06-01 19:17:51 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-06-01 19:35:57 +0200
commiteac76770eadb1a1cd481d9301d294934e1af82ad (patch)
treec1f857337181bbce58803f79565d1f3497229bf7 /openpgp/src/crypto/asymmetric.rs
parent432a7898265cf4b64ebee7a1c2e722204c9b0eea (diff)
openpgp: Implement Clone for KeyPair.
Diffstat (limited to 'openpgp/src/crypto/asymmetric.rs')
-rw-r--r--openpgp/src/crypto/asymmetric.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs
index ea8896e9..96bc1694 100644
--- a/openpgp/src/crypto/asymmetric.rs
+++ b/openpgp/src/crypto/asymmetric.rs
@@ -47,6 +47,7 @@ pub trait Decryptor {
/// implementation of [`Signer`].
///
/// [`Signer`]: trait.Signer.html
+#[derive(Clone)]
pub struct KeyPair {
public: Key,
secret: mpis::SecretKey,