Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Key cipher
Documentation
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.
Instances
Generic (Key cipher) Source # | |
NFData cipher => NFData (Key cipher) Source # | |
Defined in Tahoe.CHK.Cipher | |
ByteArrayAccess (Key cipher) Source # | |
BlockCipher cipher => BlockCipher (Key cipher) Source # | |
Defined in Tahoe.CHK.Cipher blockSize :: Key cipher -> Int # ecbEncrypt :: ByteArray ba => Key cipher -> ba -> ba # ecbDecrypt :: ByteArray ba => Key cipher -> ba -> ba # cbcEncrypt :: ByteArray ba => Key cipher -> IV (Key cipher) -> ba -> ba # cbcDecrypt :: ByteArray ba => Key cipher -> IV (Key cipher) -> ba -> ba # cfbEncrypt :: ByteArray ba => Key cipher -> IV (Key cipher) -> ba -> ba # cfbDecrypt :: ByteArray ba => Key cipher -> IV (Key cipher) -> ba -> ba # ctrCombine :: ByteArray ba => Key cipher -> IV (Key cipher) -> ba -> ba # aeadInit :: ByteArrayAccess iv => AEADMode -> Key cipher -> iv -> CryptoFailable (AEAD (Key cipher)) # | |
Cipher cipher => Cipher (Key cipher) Source # | |
Defined in Tahoe.CHK.Cipher cipherInit :: ByteArray key => key -> CryptoFailable (Key cipher) # cipherName :: Key cipher -> String # cipherKeySize :: Key cipher -> KeySizeSpecifier # | |
type Rep (Key cipher) Source # | |
Defined in Tahoe.CHK.Cipher type Rep (Key cipher) = D1 ('MetaData "Key" "Tahoe.CHK.Cipher" "tahoe-chk-0.2.0.0-inplace" 'False) (C1 ('MetaCons "Key" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScrubbedBytes) :*: S1 ('MetaSel ('Just "keyCipher") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 cipher))) |