raaz-0.2.3: The raaz cryptographic library.
Safe HaskellNone
LanguageHaskell2010

Raaz.Cipher.ChaCha20

Description

The Chacha20 cipher.

Synopsis

Documentation

data ChaCha20 Source #

The type associated with the ChaCha20 cipher.

chacha20 :: ChaCha20 Source #

The chacha20 stream cipher.

data KEY Source #

The key type.

Instances

Instances details
Show KEY Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Methods

showsPrec :: Int -> KEY -> ShowS #

show :: KEY -> String #

showList :: [KEY] -> ShowS #

IsString KEY Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Methods

fromString :: String -> KEY #

Storable KEY Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Methods

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 () #

EndianStore KEY Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Methods

store :: Ptr KEY -> KEY -> IO () Source #

load :: Ptr KEY -> IO KEY Source #

adjustEndian :: Ptr KEY -> Int -> IO () Source #

Encodable KEY Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

RandomStorable KEY Source # 
Instance details

Defined in Raaz.Random

Methods

fillRandomElements :: Memory mem => Int -> Ptr KEY -> RT mem () Source #

data IV Source #

The IV for the chacha20

Instances

Instances details
Show IV Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Methods

showsPrec :: Int -> IV -> ShowS #

show :: IV -> String #

showList :: [IV] -> ShowS #

IsString IV Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Methods

fromString :: String -> IV #

Storable IV Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Methods

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 () #

EndianStore IV Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Methods

store :: Ptr IV -> IV -> IO () Source #

load :: Ptr IV -> IO IV Source #

adjustEndian :: Ptr IV -> Int -> IO () Source #

Encodable IV Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

RandomStorable IV Source # 
Instance details

Defined in Raaz.Random

Methods

fillRandomElements :: Memory mem => Int -> Ptr IV -> RT mem () Source #

data Counter Source #

The counter type for chacha20

Instances

Instances details
Eq Counter Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Methods

(==) :: Counter -> Counter -> Bool #

(/=) :: Counter -> Counter -> Bool #

Num Counter Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Ord Counter Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Show Counter Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

Storable Counter Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal

EndianStore Counter Source # 
Instance details

Defined in Raaz.Cipher.ChaCha20.Internal