diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-03 12:50:10 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-03 12:50:10 +0100 |
commit | 20ae3ec8a5ae7d594643f3949693d64a24791f2c (patch) | |
tree | 2874fd480aead1ec31cd9892c48537fd84fac7b4 /openpgp/src/packet/pkesk.rs | |
parent | c0c2c235d0d90c7a56b763b08fa8c909aa389c82 (diff) |
openpgp: Remove all calls to Time::canonicalize.
- Now that we store timestamps in OpenPGP's native encoding, the
canonicalization happens when converting to it.
Diffstat (limited to 'openpgp/src/packet/pkesk.rs')
-rw-r--r-- | openpgp/src/packet/pkesk.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/packet/pkesk.rs b/openpgp/src/packet/pkesk.rs index 3cc70a27..f307dd9c 100644 --- a/openpgp/src/packet/pkesk.rs +++ b/openpgp/src/packet/pkesk.rs @@ -329,7 +329,6 @@ mod tests { #[test] fn decrypt_with_short_cv25519_secret_key() { - use crate::conversions::Time; use super::PKESK3; use crate::crypto::SessionKey; use crate::crypto::mpis::{self, MPI}; @@ -362,7 +361,7 @@ mod tests { scalar: MPI::new(&sec[..]).into(), }; let mut key: key::UnspecifiedPublic - = Key4::new(std::time::SystemTime::now().canonicalize(), + = Key4::new(std::time::SystemTime::now(), PublicKeyAlgorithm::ECDH, public_mpis) .unwrap().into(); |