From 83c981e5236a43f64664d0d674522eb529626ee0 Mon Sep 17 00:00:00 2001 From: Claas Date: Sun, 1 Dec 2024 13:07:23 +0100 Subject: [PATCH] Prefer fixed length --- web-shove/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-shove/src/lib.rs b/web-shove/src/lib.rs index 13046e2..21338da 100644 --- a/web-shove/src/lib.rs +++ b/web-shove/src/lib.rs @@ -6,8 +6,8 @@ use aes_gcm::{ mod experiments; const KEY_INFO: &[u8; 13] = b"WebPush: info"; -const CONTENT_ENCODING_KEY_INFO: &[u8] = b"Content-Encoding: aes128gcm\0"; -const NONCE_INFO: &[u8] = b"Content-Encoding: nonce\0"; +const CONTENT_ENCODING_KEY_INFO: &[u8; 28] = b"Content-Encoding: aes128gcm\0"; +const NONCE_INFO: &[u8; 24] = b"Content-Encoding: nonce\0"; const PADDING_DELIMITER: u8 = 0x01; const LAST_PADDING_DELIMITER: u8 = 0x02; -- 2.51.2