Safe Haskell | None |
---|---|
Language | Haskell2010 |
Raaz.Cipher.AES
Contents
Description
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 Methods fromString :: String -> KEY128 | |
Storable KEY128 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods peekElemOff :: Ptr KEY128 -> Int -> IO KEY128 pokeElemOff :: Ptr KEY128 -> Int -> KEY128 -> IO () peekByteOff :: Ptr b -> Int -> IO KEY128 pokeByteOff :: Ptr b -> Int -> KEY128 -> IO () | |
EndianStore KEY128 Source # | |
Encodable KEY128 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods toByteString :: KEY128 -> ByteString Source # fromByteString :: ByteString -> Maybe KEY128 Source # unsafeFromByteString :: ByteString -> 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 Methods fromString :: String -> KEY192 | |
Storable KEY192 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods peekElemOff :: Ptr KEY192 -> Int -> IO KEY192 pokeElemOff :: Ptr KEY192 -> Int -> KEY192 -> IO () peekByteOff :: Ptr b -> Int -> IO KEY192 pokeByteOff :: Ptr b -> Int -> KEY192 -> IO () | |
EndianStore KEY192 Source # | |
Encodable KEY192 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods toByteString :: KEY192 -> ByteString Source # fromByteString :: ByteString -> Maybe KEY192 Source # unsafeFromByteString :: ByteString -> 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 Methods fromString :: String -> KEY256 | |
Storable KEY256 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods peekElemOff :: Ptr KEY256 -> Int -> IO KEY256 pokeElemOff :: Ptr KEY256 -> Int -> KEY256 -> IO () peekByteOff :: Ptr b -> Int -> IO KEY256 pokeByteOff :: Ptr b -> Int -> KEY256 -> IO () | |
EndianStore KEY256 Source # | |
Encodable KEY256 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods toByteString :: KEY256 -> ByteString Source # fromByteString :: ByteString -> Maybe KEY256 Source # unsafeFromByteString :: ByteString -> 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 Methods fromString :: String -> IV | |
Storable IV Source # | |
Defined in Raaz.Cipher.AES.Internal Methods peekElemOff :: Ptr IV -> Int -> IO IV pokeElemOff :: Ptr IV -> Int -> IV -> IO () peekByteOff :: Ptr b -> Int -> IO IV pokeByteOff :: Ptr b -> Int -> IV -> IO () | |
EndianStore IV Source # | |
Encodable IV Source # | |
Defined in Raaz.Cipher.AES.Internal Methods toByteString :: IV -> ByteString Source # fromByteString :: ByteString -> Maybe IV Source # unsafeFromByteString :: ByteString -> IV Source # | |
RandomStorable IV Source # | |
Defined in Raaz.Cipher.AES.Internal |