Module Hacl.Chacha20_Poly1305_128
128-bit vectorized C implementation of Chacha20-Poly1305 that runs on platforms with 128-bit vector support
type bytes= SharedDefs.CBytes.t
val encrypt : key:bytes -> iv:bytes -> ad:bytes -> pt:bytes -> bytes * bytesencrypt key iv ad pttakes akey, an initial valueiv, additional dataad, and plaintextptand returns a tuple containing the encryptedptand the authentication tag for the plaintext and the associated data.
val decrypt : key:bytes -> iv:bytes -> ad:bytes -> ct:bytes -> tag:bytes -> bytes optiondecrypt key iv ad ct tagtakes akey, the initial valueiv, additional dataad, ciphertextct, and authentication tagtag, and, if successful, returns the decryptedct.
module Noalloc : sig ... endVersions of these functions which write their output in a buffer passed in as an argument