Safe Haskell | None |
---|---|
Language | Haskell2010 |
The AES block cipher.
Documentation
data AES (n :: Nat) (mode :: CipherMode) Source #
The type associated with AES ciphers. Raaz provides AES variants
with key lengths 128, 192 and 256. The key types for the above
ciphers in cbc mode are given by the types (
,
KEY128
, IV)(
KEY192
, IV)(
respectively.KEY256
, IV)
Instances
Key used for AES-128
Instances
Show KEY128 Source # | Shows in base 16 |
IsString KEY128 Source # | Expects in base 16 |
Defined in Raaz.Cipher.AES.Internal fromString :: String -> KEY128 # | |
Storable KEY128 Source # | |
EndianStore KEY128 Source # | |
Encodable KEY128 Source # | |
Defined in Raaz.Cipher.AES.Internal toByteString :: KEY128 -> ByteString Source # fromByteString :: ByteString -> Maybe KEY128 Source # | |
RandomStorable KEY128 Source # | |
Defined in Raaz.Cipher.AES.Internal |
Key used for AES-128
Instances
Show KEY192 Source # | Shows in base 16 |
IsString KEY192 Source # | Expects in base 16 |
Defined in Raaz.Cipher.AES.Internal fromString :: String -> KEY192 # | |
Storable KEY192 Source # | |
EndianStore KEY192 Source # | |
Encodable KEY192 Source # | |
Defined in Raaz.Cipher.AES.Internal toByteString :: KEY192 -> ByteString Source # fromByteString :: ByteString -> Maybe KEY192 Source # | |
RandomStorable KEY192 Source # | |
Defined in Raaz.Cipher.AES.Internal |
Key used for AES-128
Instances
Show KEY256 Source # | Shows in base 16 |
IsString KEY256 Source # | Expects in base 16 |
Defined in Raaz.Cipher.AES.Internal fromString :: String -> KEY256 # | |
Storable KEY256 Source # | |
EndianStore KEY256 Source # | |
Encodable KEY256 Source # | |
Defined in Raaz.Cipher.AES.Internal toByteString :: KEY256 -> ByteString Source # fromByteString :: ByteString -> Maybe KEY256 Source # | |
RandomStorable KEY256 Source # | |
Defined in Raaz.Cipher.AES.Internal |
The IV used by the CBC mode.
Instances
Show IV Source # | Shown as a its base16 encoding. |
IsString IV Source # | Expects in base16. |
Defined in Raaz.Cipher.AES.Internal fromString :: String -> IV # | |
Storable IV Source # | |
Defined in Raaz.Cipher.AES.Internal | |
EndianStore IV Source # | |
Encodable IV Source # | |
Defined in Raaz.Cipher.AES.Internal toByteString :: IV -> ByteString Source # fromByteString :: ByteString -> Maybe IV Source # unsafeFromByteString :: ByteString -> IV Source # | |
RandomStorable IV Source # | |
Defined in Raaz.Cipher.AES.Internal |