From 5cd3969b5bc7a908c0b1bdef1259f9e468d1adb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Thu, 15 Feb 2024 18:56:52 +0100 Subject: [PATCH] Set the default IKM duration to 20 years --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index dade1c7..9554e49 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ pub use ikm::InputKeyMaterialList; pub use scheme::Scheme; #[cfg(feature = "ikm-management")] -const DEFAULT_IKM_DURATION: u64 = 60 * 60 * 24 * 365; // In seconds +const DEFAULT_IKM_DURATION: u64 = 60 * 60 * 24 * 7305; // In seconds, set to 7305 days (aprox. 20 years) #[cfg(feature = "ikm-management")] const DEFAULT_SCHEME: Scheme = Scheme::XChaCha20Poly1305WithBlake3;