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/P256/SHA2_384/index.html

Module P256.SHA2_384Source

Buffers have the following size constraints:

  • pk: 64 bytes, corresponding to the "raw" representation of an elliptic curve point (see Point representation and conversions)
  • sk, k: 32 bytes
  • signature: 64 bytes
  • msg: no size requirement for variants using SHA-2 hashing (see ECDSA)
Sourceval sign : sk:bytes -> msg:bytes -> k:bytes -> bytes option

sign sk msg k attempts to sign the message msg with secret key sk and signing secret k and returns the signature if successful.

Sourceval verify : pk:bytes -> msg:bytes -> signature:bytes -> bool

verify pk msg signature checks the signature of msg using public key pk and returns true if it is valid.

Sourcemodule Noalloc : sig ... end

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

OCaml

Innovation. Community. Security.