From bc90b2da8d53d1cb611726d3cbb3cede895ef4a7 Mon Sep 17 00:00:00 2001 From: mamoniot Date: Thu, 29 Dec 2022 13:45:08 -0500 Subject: [PATCH] fixed comment typo --- zssp/src/zssp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zssp/src/zssp.rs b/zssp/src/zssp.rs index 8025fb3f8..2a5afabe8 100644 --- a/zssp/src/zssp.rs +++ b/zssp/src/zssp.rs @@ -36,7 +36,7 @@ pub enum Error { /// Packet failed one or more authentication (MAC) checks /// IMPORTANT: Do not reply to a peer who has sent a packet that has failed authentication. Any response at all will leak to an attacker what authentication step their packet failed at (timing attack), which lowers the total authentication entropy they have to brute force. - /// There is a safe way to reply if absolutely necessary, by sending the reply back after a constant amount of time, but this is difficult to get correct. + /// There is a safe way to reply if absolutely necessary, by sending the reply back after a constant amount of time, but this is very difficult to get correct. FailedAuthentication, /// New session was rejected by the application layer. @@ -83,7 +83,7 @@ pub enum ReceiveResult<'a, H: ApplicationLayer> { OkNewSession(Session), /// Packet superficially appears valid but was ignored e.g. as a duplicate. - /// IMPORTANT: This pack was not authenticated, so for the most part treat this the same as an Error::FailedAuthentication + /// IMPORTANT: This packet was not authenticated, so for the most part treat this the same as an Error::FailedAuthentication Ignored, }