Safe Haskell | Safe-Inferred |
---|---|
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
IsString KEY128 Source # | Expects in base 16 |
Defined in Raaz.Cipher.AES.Internal Methods fromString :: String -> KEY128 Source # | |
Storable KEY128 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods sizeOf :: KEY128 -> Int Source # alignment :: KEY128 -> Int Source # peekElemOff :: Ptr KEY128 -> Int -> IO KEY128 Source # pokeElemOff :: Ptr KEY128 -> Int -> KEY128 -> IO () Source # peekByteOff :: Ptr b -> Int -> IO KEY128 Source # pokeByteOff :: Ptr b -> Int -> KEY128 -> IO () Source # | |
Show KEY128 Source # | Shows in base 16 |
Encodable KEY128 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods toByteString :: KEY128 -> ByteString Source # fromByteString :: ByteString -> Maybe KEY128 Source # | |
EndianStore KEY128 Source # | |
RandomStorable KEY128 Source # | |
Defined in Raaz.Cipher.AES.Internal |
Key used for AES-128
Instances
IsString KEY192 Source # | Expects in base 16 |
Defined in Raaz.Cipher.AES.Internal Methods fromString :: String -> KEY192 Source # | |
Storable KEY192 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods sizeOf :: KEY192 -> Int Source # alignment :: KEY192 -> Int Source # peekElemOff :: Ptr KEY192 -> Int -> IO KEY192 Source # pokeElemOff :: Ptr KEY192 -> Int -> KEY192 -> IO () Source # peekByteOff :: Ptr b -> Int -> IO KEY192 Source # pokeByteOff :: Ptr b -> Int -> KEY192 -> IO () Source # | |
Show KEY192 Source # | Shows in base 16 |
Encodable KEY192 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods toByteString :: KEY192 -> ByteString Source # fromByteString :: ByteString -> Maybe KEY192 Source # | |
EndianStore KEY192 Source # | |
RandomStorable KEY192 Source # | |
Defined in Raaz.Cipher.AES.Internal |
Key used for AES-128
Instances
IsString KEY256 Source # | Expects in base 16 |
Defined in Raaz.Cipher.AES.Internal Methods fromString :: String -> KEY256 Source # | |
Storable KEY256 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods sizeOf :: KEY256 -> Int Source # alignment :: KEY256 -> Int Source # peekElemOff :: Ptr KEY256 -> Int -> IO KEY256 Source # pokeElemOff :: Ptr KEY256 -> Int -> KEY256 -> IO () Source # peekByteOff :: Ptr b -> Int -> IO KEY256 Source # pokeByteOff :: Ptr b -> Int -> KEY256 -> IO () Source # | |
Show KEY256 Source # | Shows in base 16 |
Encodable KEY256 Source # | |
Defined in Raaz.Cipher.AES.Internal Methods toByteString :: KEY256 -> ByteString Source # fromByteString :: ByteString -> Maybe KEY256 Source # | |
EndianStore KEY256 Source # | |
RandomStorable KEY256 Source # | |
Defined in Raaz.Cipher.AES.Internal |
The IV used by the CBC mode.
Instances
IsString IV Source # | Expects in base16. |
Defined in Raaz.Cipher.AES.Internal Methods fromString :: String -> IV Source # | |
Storable IV Source # | |
Defined in Raaz.Cipher.AES.Internal | |
Show IV Source # | Shown as a its base16 encoding. |
Encodable IV Source # | |
Defined in Raaz.Cipher.AES.Internal Methods toByteString :: IV -> ByteString Source # fromByteString :: ByteString -> Maybe IV Source # unsafeFromByteString :: ByteString -> IV Source # | |
EndianStore IV Source # | |
RandomStorable IV Source # | |
Defined in Raaz.Cipher.AES.Internal |