package mirage-crypto
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val of_secret : maclen:int -> Cstruct.t -> key
Construct the encryption key corresponding to secret
, that will produce authentication codes with the length maclen
.
val encrypt :
key:key ->
nonce:Cstruct.t ->
?adata:Cstruct.t ->
Cstruct.t ->
Cstruct.t
encrypt ~key ~nonce ?adata msg
is msg
encrypted under key
and nonce
, packed with authentication data computed over msg
and adata
.
val decrypt :
key:key ->
nonce:Cstruct.t ->
?adata:Cstruct.t ->
Cstruct.t ->
Cstruct.t option
decrypt ~key ~nonce ?adata msg
is Some text
when msg
was produced by the corresponding encrypt
, or None
otherwise.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>