commit 12f9b40459a470f2e870b041ac89fd92877287c8 parent 9adca9651d3098b8fa2ce48f663c5ac6105dc90e Author: Jared Tobin <jared@jtobin.io> Date: Sun, 22 Jun 2025 22:55:18 +0400 lib: error docs Diffstat:
M | lib/Crypto/Cipher/ChaCha20.hs | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/Crypto/Cipher/ChaCha20.hs b/lib/Crypto/Cipher/ChaCha20.hs @@ -269,9 +269,10 @@ _block state@(ChaCha s) counter = do PA.writePrimArray s idx (iv + sv) serialize state +-- | Error values. data Error = - InvalidKey - | InvalidNonce + InvalidKey -- ^ the provided key was not 256 bits long + | InvalidNonce -- ^ the provided nonce was none 96 bits long deriving (Eq, Show) -- RFC8439 2.3