package hacl-star

  1. Overview
  2. Docs
OCaml API for EverCrypt/HACL*

Install

Dune Dependency

Authors

Maintainers

Sources

hacl-star.0.6.0.tar.gz
md5=1ab1ada1189c4e61ddda06275cc3093f
sha512=710645d22a22f5d276a26019bda8f137861e3f0dc1f9e170eb9d25c88dc84293af01fd40923181a28a063a9b8d281cb51e28c7016144f7c8bb1d63b18797fbe1

doc/hacl-star/Hacl_star/Hacl/Chacha20_Poly1305_32/index.html

Module Hacl.Chacha20_Poly1305_32Source

Portable C implementation of Chacha20-Poly1305 that runs on any 32-bit platform

Sourceval encrypt : key:bytes -> iv:bytes -> ad:bytes -> pt:bytes -> bytes * bytes

encrypt key iv ad pt takes a key, an initial value iv, additional data ad, and plaintext pt and returns a tuple containing the encrypted pt and the authentication tag for the plaintext and the associated data.

Sourceval decrypt : key:bytes -> iv:bytes -> ad:bytes -> ct:bytes -> tag:bytes -> bytes option

decrypt key iv ad ct tag takes a key, the initial value iv, additional data ad, ciphertext ct, and authentication tag tag, and, if successful, returns the decrypted ct.

Sourcemodule Noalloc : sig ... end

Versions of these functions which write their output in a buffer passed in as an argument

OCaml

Innovation. Community. Security.