package hacl-star

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

Module Hacl.Ed25519Source

Portable implementation

See here for detailed usage instructions.

EdDSA

Sourceval secret_to_public : sk:bytes -> bytes

secret_to_public sk takes a secret key sk and returns the corresponding public key.

Sourceval sign : sk:bytes -> msg:bytes -> bytes

sign sk msg takes secret key sk and message msg and returns the Ed25519 signature.

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

verify pk msg signature takes public key pk, message msg and verifies the Ed25519 signature, returning true if valid.

EdDSA Expanded Signing

Sourceval expand_keys : sk:bytes -> bytes

expand_keys sk takes secret key sk and returns the expanded secret key.

Sourceval sign_expanded : ks:bytes -> msg:bytes -> bytes

sign_expanded ks msg signature takes expanded secret key ks and message msg and returns the Ed25519 signature.

Sourcemodule Noalloc : sig ... end

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

OCaml

Innovation. Community. Security.