diff options
Diffstat (limited to 'openpgp/src/message')
-rw-r--r-- | openpgp/src/message/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/message/mod.rs b/openpgp/src/message/mod.rs index d1c80f9c..a0ccc812 100644 --- a/openpgp/src/message/mod.rs +++ b/openpgp/src/message/mod.rs @@ -756,7 +756,7 @@ mod tests { lit.set_body(b"data".to_vec()); let hash = ::constants::HashAlgorithm::SHA512; - let key = ::packet::Key::new(PublicKeyAlgorithm::EdDSA).unwrap(); + let key = ::packet::Key::generate(PublicKeyAlgorithm::EdDSA).unwrap(); let sec = if let Some(SecretKey::Unencrypted { ref mpis }) = key.secret() { mpis.clone() @@ -872,7 +872,7 @@ mod tests { lit.set_body(b"data".to_vec()); let hash = ::constants::HashAlgorithm::SHA512; - let key = ::packet::Key::new(PublicKeyAlgorithm::EdDSA).unwrap(); + let key = ::packet::Key::generate(PublicKeyAlgorithm::EdDSA).unwrap(); let sec = if let Some(SecretKey::Unencrypted { ref mpis }) = key.secret() { mpis.clone() |