summaryrefslogtreecommitdiffstats
path: root/openpgp/src/tpk/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/tpk/builder.rs')
-rw-r--r--openpgp/src/tpk/builder.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/src/tpk/builder.rs b/openpgp/src/tpk/builder.rs
index 3ef3acc2..3ef14856 100644
--- a/openpgp/src/tpk/builder.rs
+++ b/openpgp/src/tpk/builder.rs
@@ -244,7 +244,9 @@ impl TPKBuilder {
Some(uid) => sig.sign_userid_binding(
&mut KeyPair::new(&key, mpis)?, &key, &uid,
HashAlgorithm::SHA512)?,
- None => sig.sign_primary_key_binding(&key, mpis, HashAlgorithm::SHA512)?,
+ None => sig.sign_primary_key_binding(
+ &mut KeyPair::new(&key, mpis)?,
+ HashAlgorithm::SHA512)?,
}
}
Some(SecretKey::Encrypted{ .. }) => {