Skip to content
Snippets Groups Projects
Commit 744b0ef2 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

haddock for the Key type

parent 6ae42b14
Branches
Tags
1 merge request!54Switch away from cipher-aes128
Pipeline #5380 passed
...@@ -16,6 +16,13 @@ import qualified Data.ByteArray as BA ...@@ -16,6 +16,13 @@ import qualified Data.ByteArray as BA
import Data.Coerce (coerce) import Data.Coerce (coerce)
import GHC.Generics (Generic) import GHC.Generics (Generic)
{- | A block cipher key which can be deserialized from or serialized to a
ByteArray.
This is a wrapper around Crypto.Cipher.Types.Cipher which does not provide a
way to recover the original bytes of the key. We provide this by keeping the
original bytes around.
-}
data Key cipher = Key {keyBytes :: ScrubbedBytes, keyCipher :: cipher} data Key cipher = Key {keyBytes :: ScrubbedBytes, keyCipher :: cipher}
deriving instance Generic (Key cipher) deriving instance Generic (Key cipher)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment