package hacl-star

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Keccak.NoallocSource

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

Sourceval shake128 : msg:bytes -> digest:bytes -> unit

shake128 msg size hashes msg using SHAKE-128 and returns a digest of size bytes.

Sourceval shake256 : msg:bytes -> digest:bytes -> unit

shake256 msg digest hashes msg using SHAKE-256 and outputs the result in digest.

Sourceval keccak : rate:int -> capacity:int -> suffix:int -> msg:bytes -> digest:bytes -> unit

Direct access to the general Keccak function, of which all the SHA-3 and SHAKE functions are instances. While the library does run some sanity checks for the parameters, users should be extremely careful if using the Keccak function directly.

OCaml

Innovation. Community. Security.