bindings-nettle-0.4: bindings to nettle crypto library
Safe HaskellSafe
LanguageHaskell2010

Bindings.Nettle.Cipher.ChaCha

Documentation

c'CHACHA_KEY_SIZE :: Num a => a Source #

data C'chacha_ctx Source #

Constructors

C'chacha_ctx 

Instances

Instances details
Eq C'chacha_ctx Source # 
Instance details

Defined in Bindings.Nettle.Cipher.ChaCha

Methods

(==) :: C'chacha_ctx -> C'chacha_ctx -> Bool

(/=) :: C'chacha_ctx -> C'chacha_ctx -> Bool

Show C'chacha_ctx Source # 
Instance details

Defined in Bindings.Nettle.Cipher.ChaCha

Methods

showsPrec :: Int -> C'chacha_ctx -> ShowS

show :: C'chacha_ctx -> String

showList :: [C'chacha_ctx] -> ShowS

Storable C'chacha_ctx Source # 
Instance details

Defined in Bindings.Nettle.Cipher.ChaCha

Methods

sizeOf :: C'chacha_ctx -> Int

alignment :: C'chacha_ctx -> Int

peekElemOff :: Ptr C'chacha_ctx -> Int -> IO C'chacha_ctx

pokeElemOff :: Ptr C'chacha_ctx -> Int -> C'chacha_ctx -> IO ()

peekByteOff :: Ptr b -> Int -> IO C'chacha_ctx

pokeByteOff :: Ptr b -> Int -> C'chacha_ctx -> IO ()

peek :: Ptr C'chacha_ctx -> IO C'chacha_ctx

poke :: Ptr C'chacha_ctx -> C'chacha_ctx -> IO ()

c'nettle_chacha_set_key :: Ptr C'chacha_ctx -> Ptr CUChar -> IO () Source #

c'nettle_chacha_set_nonce :: Ptr C'chacha_ctx -> Ptr CUChar -> IO () Source #

c'nettle_chacha_set_nonce96 :: Ptr C'chacha_ctx -> Ptr CUChar -> IO () Source #

p'nettle_chacha_set_key :: FunPtr (Ptr C'chacha_ctx -> Ptr CUChar -> IO ()) Source #

p'nettle_chacha_set_nonce :: FunPtr (Ptr C'chacha_ctx -> Ptr CUChar -> IO ()) Source #

c'nettle_chacha_crypt :: Ptr C'chacha_ctx -> CUInt -> Ptr CUChar -> Ptr CUChar -> IO () Source #

p'nettle_chacha_set_nonce96 :: FunPtr (Ptr C'chacha_ctx -> Ptr CUChar -> IO ()) Source #

p'nettle_chacha_crypt :: FunPtr (Ptr C'chacha_ctx -> CUInt -> Ptr CUChar -> Ptr CUChar -> IO ()) Source #