summaryrefslogtreecommitdiff
path: root/src/crypto/crypton
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-11-08 15:08:02 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2026-11-08 20:41:24 +0100
commitaefa4b4dc76c3feaab223ff7afe1293c7434fae0 (patch)
tree65106a4d4c3443e7a057082f8cb768c2400d3be4 /src/crypto/crypton
parent4a83167a5199ad078b14b0df7a2ac1ef0b4f58b6 (diff)
Use ByteString in nonce-related functions
Diffstat (limited to 'src/crypto/crypton')
-rw-r--r--src/crypto/crypton/Crypto.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/crypton/Crypto.hs b/src/crypto/crypton/Crypto.hs
index e84cec2..015bdb2 100644
--- a/src/crypto/crypton/Crypto.hs
+++ b/src/crypto/crypton/Crypto.hs
@@ -39,7 +39,7 @@ import Crypto.PubKey.Ed25519 qualified as Ed
import Crypto.Random
import Crypto.Random.Entropy
-import Data.ByteArray (Bytes, ByteArray)
+import Data.ByteArray (ByteArray)
import Data.ByteArray qualified as BA
import Data.ByteString (ByteString)
@@ -55,10 +55,10 @@ type AeadState = C.State
type Nonce = C.Nonce
-nonce8 :: Bytes -> Bytes -> CryptoFailable Nonce
+nonce8 :: ByteString -> ByteString -> CryptoFailable Nonce
nonce8 = C.nonce8
-nonce12 :: Bytes -> CryptoFailable Nonce
+nonce12 :: ByteString -> CryptoFailable Nonce
nonce12 = C.nonce12
aeadInitialize :: ScrubbedBytes -> Nonce -> CryptoFailable AeadState