raaz-0.1.0: The raaz cryptographic library.
Raaz.Cipher.ChaCha20
Synopsis
data ChaCha20 Source #
Instances
Methods
name :: ChaCha20 -> String Source #
description :: ChaCha20 -> String Source #
Associated Types
type Implementation ChaCha20 :: * Source #
blockSize :: ChaCha20 -> BYTES Int Source #
chacha20 :: ChaCha20 Source #
The chacha20 stream cipher.
data KEY Source #
The key type.
showsPrec :: Int -> KEY -> ShowS #
show :: KEY -> String #
showList :: [KEY] -> ShowS #
fromString :: String -> KEY #
sizeOf :: KEY -> Int #
alignment :: KEY -> Int #
peekElemOff :: Ptr KEY -> Int -> IO KEY #
pokeElemOff :: Ptr KEY -> Int -> KEY -> IO () #
peekByteOff :: Ptr b -> Int -> IO KEY #
pokeByteOff :: Ptr b -> Int -> KEY -> IO () #
peek :: Ptr KEY -> IO KEY #
poke :: Ptr KEY -> KEY -> IO () #
store :: Ptr KEY -> KEY -> IO () Source #
load :: Ptr KEY -> IO KEY Source #
adjustEndian :: Ptr KEY -> Int -> IO () Source #
toByteString :: KEY -> ByteString Source #
fromByteString :: ByteString -> Maybe KEY Source #
unsafeFromByteString :: ByteString -> KEY Source #
random :: Memory mem => RT mem KEY Source #
data IV Source #
The IV for the chacha20
showsPrec :: Int -> IV -> ShowS #
show :: IV -> String #
showList :: [IV] -> ShowS #
fromString :: String -> IV #
sizeOf :: IV -> Int #
alignment :: IV -> Int #
peekElemOff :: Ptr IV -> Int -> IO IV #
pokeElemOff :: Ptr IV -> Int -> IV -> IO () #
peekByteOff :: Ptr b -> Int -> IO IV #
pokeByteOff :: Ptr b -> Int -> IV -> IO () #
peek :: Ptr IV -> IO IV #
poke :: Ptr IV -> IV -> IO () #
store :: Ptr IV -> IV -> IO () Source #
load :: Ptr IV -> IO IV Source #
adjustEndian :: Ptr IV -> Int -> IO () Source #
toByteString :: IV -> ByteString Source #
fromByteString :: ByteString -> Maybe IV Source #
unsafeFromByteString :: ByteString -> IV Source #
random :: Memory mem => RT mem IV Source #
data Counter Source #
The counter type for chacha20
(==) :: Counter -> Counter -> Bool #
(/=) :: Counter -> Counter -> Bool #
(+) :: Counter -> Counter -> Counter #
(-) :: Counter -> Counter -> Counter #
(*) :: Counter -> Counter -> Counter #
negate :: Counter -> Counter #
abs :: Counter -> Counter #
signum :: Counter -> Counter #
fromInteger :: Integer -> Counter #
compare :: Counter -> Counter -> Ordering #
(<) :: Counter -> Counter -> Bool #
(<=) :: Counter -> Counter -> Bool #
(>) :: Counter -> Counter -> Bool #
(>=) :: Counter -> Counter -> Bool #
max :: Counter -> Counter -> Counter #
min :: Counter -> Counter -> Counter #
showsPrec :: Int -> Counter -> ShowS #
show :: Counter -> String #
showList :: [Counter] -> ShowS #
sizeOf :: Counter -> Int #
alignment :: Counter -> Int #
peekElemOff :: Ptr Counter -> Int -> IO Counter #
pokeElemOff :: Ptr Counter -> Int -> Counter -> IO () #
peekByteOff :: Ptr b -> Int -> IO Counter #
pokeByteOff :: Ptr b -> Int -> Counter -> IO () #
peek :: Ptr Counter -> IO Counter #
poke :: Ptr Counter -> Counter -> IO () #
store :: Ptr Counter -> Counter -> IO () Source #
load :: Ptr Counter -> IO Counter Source #
adjustEndian :: Ptr Counter -> Int -> IO () Source #