summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/pkesk.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-12-03 12:50:10 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-03 12:50:10 +0100
commit20ae3ec8a5ae7d594643f3949693d64a24791f2c (patch)
tree2874fd480aead1ec31cd9892c48537fd84fac7b4 /openpgp/src/packet/pkesk.rs
parentc0c2c235d0d90c7a56b763b08fa8c909aa389c82 (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.rs3
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();