From 00491e8de83411b1f4bb2ddceef612051b7b20f8 Mon Sep 17 00:00:00 2001 From: RyanSquared Date: Sun, 7 Jan 2024 21:43:26 -0500 Subject: [PATCH 1/3] openpgp-card: send all bytes of creation time --- openpgp-card/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/openpgp-card/src/lib.rs b/openpgp-card/src/lib.rs index f327aea..82081f1 100644 --- a/openpgp-card/src/lib.rs +++ b/openpgp-card/src/lib.rs @@ -1209,7 +1209,6 @@ impl<'a> Transaction<'a> { .get() .to_be_bytes() .iter() - .skip_while(|&&e| e == 0) .copied() .collect(); From 799d077d559f0184cd6f14a7a71ae0fba5f79c35 Mon Sep 17 00:00:00 2001 From: RyanSquared Date: Sun, 7 Jan 2024 21:51:21 -0500 Subject: [PATCH 2/3] openpgp-card: optimize use of iter/collect to use to_vec --- openpgp-card/src/lib.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/openpgp-card/src/lib.rs b/openpgp-card/src/lib.rs index 82081f1..e34e86a 100644 --- a/openpgp-card/src/lib.rs +++ b/openpgp-card/src/lib.rs @@ -1205,12 +1205,7 @@ impl<'a> Transaction<'a> { log::info!("OpenPgpTransaction: set_creation_time"); // Timestamp update - let time_value: Vec = time - .get() - .to_be_bytes() - .iter() - .copied() - .collect(); + let time_value: Vec = time.get().to_be_bytes().to_vec(); let cmd = commands::put_data(key_type.timestamp_put_tag(), time_value); From 3d407eaa8ecf47cf84ad62e32d6d38a7a035eba4 Mon Sep 17 00:00:00 2001 From: RyanSquared Date: Sun, 7 Jan 2024 22:06:06 -0500 Subject: [PATCH 3/3] cargo-deny: skip RUSTSEC-2023-0071 --- deny.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/deny.toml b/deny.toml index 3e7ccc7..2ff949c 100644 --- a/deny.toml +++ b/deny.toml @@ -11,6 +11,7 @@ notice = "warn" ignore = [ # Ignore time issue for now as there is no solution "RUSTSEC-2020-0071", + "RUSTSEC-2023-0071", ] [licenses] unlicensed = "deny"