package hacl-star

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

hacl-star.0.4.1.tar.gz
md5=bc59d5548ad7ac1d67403ad9f74bf608
sha256=a8769d99f7534610631d24898380060a30d98a58dcdf0a65b53bf1fd2339731a
sha512=2962724d9b0dbad0ce74bf8dd41a3efda9453a8cdec3e79c9d27f70d90d2252cbd57bf19128918628cdd4f011715b48abc211211ff3d65bf8f47c65c3fd6cc7c

doc/hacl-star/Hacl_star/EverCrypt/HKDF_SHA2_384/index.html

Module EverCrypt.HKDF_SHA2_384Source

Multiplexing interface for HKDF using SHA2-384

Buffers have the following size constraints with respect to the digest size of the underlying hash function, digest_len:

  • prk: = digest_len
  • okm: <= 255 * digest_len
Sourceval extract : salt:bytes -> ikm:bytes -> bytes

extract salt ikm computes a pseudorandom key using input key material ikm and salt salt.

Sourceval expand : prk:bytes -> info:bytes -> size:int -> bytes

expand prk info size expands the pseudorandom key prk, taking the info string info into account and returns a buffer of size bytes.

Sourcemodule Noalloc : sig ... end

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