Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: haskell-cryptography/libsodium-bindings
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 669f2d667dac14fc59c9cc445f37f8e708dedc4b
Choose a base ref
..
head repository: haskell-cryptography/libsodium-bindings
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a9159e8f0998c3cbd7f8d5c5fa13fb26b14c73ea
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 sel/src/Sel/SecretKey/Cipher.hs
2 changes: 1 addition & 1 deletion sel/src/Sel/SecretKey/Cipher.hs
Original file line number Diff line number Diff line change
@@ -213,7 +213,7 @@ instance Show Nonce where
-- | Generate a new random nonce.
-- Only use it once per exchanged message.
--
-- Do not use this outside of hash creation!
-- Do not use this outside of ciphertext creation!
newNonce :: IO Nonce
newNonce = do
(fPtr :: ForeignPtr CUChar) <- Foreign.mallocForeignPtrBytes (fromIntegral cryptoSecretboxNonceBytes)