From 3717fdfd62a4dcb05e2821724875bc578070652c Mon Sep 17 00:00:00 2001 From: Monica Moniot Date: Fri, 4 Aug 2023 18:41:45 -0400 Subject: [PATCH] added docs --- src/zeta.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zeta.rs b/src/zeta.rs index 3b9aa39..19b655d 100644 --- a/src/zeta.rs +++ b/src/zeta.rs @@ -34,7 +34,7 @@ pub(crate) fn to_nonce(packet_type: u8, counter: u64) -> [u8; AES_GCM_IV_SIZE] { ret[4..].copy_from_slice(&counter.to_be_bytes()); ret } -/// Corresponds to Figure 10 found in Section 4.3. +/// Corresponds to Figure 10 and Figure 14 found in Section 4.3. pub(crate) fn from_nonce(n: &[u8]) -> (u8, u64) { assert!(n.len() >= PACKET_NONCE_SIZE); let c_start = n.len() - 8;