Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Bindings.Nettle.Cipher.ChaChaPoly1305
Documentation
c'CHACHA_POLY1305_BLOCK_SIZE :: Num a => a Source #
c'CHACHA_POLY1305_KEY_SIZE :: Num a => a Source #
c'CHACHA_POLY1305_NONCE_SIZE :: Num a => a Source #
c'CHACHA_POLY1305_DIGEST_SIZE :: Num a => a Source #
data C'chacha_poly1305_ctx Source #
Constructors
C'chacha_poly1305_ctx | |
c'nettle_chacha_poly1305_set_key :: Ptr C'chacha_poly1305_ctx -> Ptr CUChar -> IO () Source #
c'nettle_chacha_poly1305_set_nonce :: Ptr C'chacha_poly1305_ctx -> Ptr CUChar -> IO () Source #
c'nettle_chacha_poly1305_update :: Ptr C'chacha_poly1305_ctx -> CUInt -> Ptr CUChar -> IO () Source #
p'nettle_chacha_poly1305_set_key :: FunPtr (Ptr C'chacha_poly1305_ctx -> Ptr CUChar -> IO ()) Source #
p'nettle_chacha_poly1305_set_nonce :: FunPtr (Ptr C'chacha_poly1305_ctx -> Ptr CUChar -> IO ()) Source #
c'nettle_chacha_poly1305_encrypt :: Ptr C'chacha_poly1305_ctx -> CUInt -> Ptr CUChar -> Ptr CUChar -> IO () Source #
p'nettle_chacha_poly1305_update :: FunPtr (Ptr C'chacha_poly1305_ctx -> CUInt -> Ptr CUChar -> IO ()) Source #
c'nettle_chacha_poly1305_decrypt :: Ptr C'chacha_poly1305_ctx -> CUInt -> Ptr CUChar -> Ptr CUChar -> IO () Source #
c'nettle_chacha_poly1305_digest :: Ptr C'chacha_poly1305_ctx -> CUInt -> Ptr CUChar -> IO () Source #
p'nettle_chacha_poly1305_encrypt :: FunPtr (Ptr C'chacha_poly1305_ctx -> CUInt -> Ptr CUChar -> Ptr CUChar -> IO ()) Source #
p'nettle_chacha_poly1305_decrypt :: FunPtr (Ptr C'chacha_poly1305_ctx -> CUInt -> Ptr CUChar -> Ptr CUChar -> IO ()) Source #
p'nettle_chacha_poly1305_digest :: FunPtr (Ptr C'chacha_poly1305_ctx -> CUInt -> Ptr CUChar -> IO ()) Source #