package tezos-hacl-glue
include DIRECT_HASH
include INCREMENTAL_HASH
For hashes that offer an incremental interface, the internal state of the algorithm is kept in an object of type state
which is initialised using init
and needs to be stored and passed as an argument to the other functions in the interface. It is automatically freed when no longer required.
val init : unit -> state
init ()
initializes and returns an internal state of the hash algorithm
val update : state -> Stdlib.Bytes.t -> unit
update st msg
updates the internal state of the hash algorithm st
with buffer msg
.
val finish : state -> Stdlib.Bytes.t
finish st
generates and returns a digest, without invalidating the state, meaning that further calls to update
can be made
module HMAC : sig ... end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>