diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-09-03 16:16:44 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-09-03 16:16:44 +0200 |
commit | be1244fb6b9db270ff38d2343e735d85f158a985 (patch) | |
tree | aa1ce40c56192a0d7163c99cfdb254a4bf46faae /openpgp/src/message | |
parent | 8b9c98bdc0eea5db14dee4ef85c1ba95bd9d7f78 (diff) |
openpgp: Split the ciphertext-variants of MPIs off.
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 b81f5adc..f32ebca0 100644 --- a/openpgp/src/message/mod.rs +++ b/openpgp/src/message/mod.rs @@ -399,7 +399,7 @@ mod tests { use PublicKeyAlgorithm; use SignatureType; use s2k::S2K; - use mpis::MPIs; + use mpis::{Ciphertext, MPI}; use Tag; use packet::CompressedData; use packet::Literal; @@ -1003,7 +1003,7 @@ mod tests { version: 0, recipient: KeyID::from_hex("0000111122223333").unwrap(), pk_algo: PublicKeyAlgorithm::RSAEncrypt, - esk: MPIs::empty() + esk: Ciphertext::RSA { c: MPI::new(&[]) }, })); assert!(packets.iter().map(|p| p.tag()).collect::<Vec<Tag>>() |