package hacl

  1. Overview
  2. Docs

Module Hacl.SignSource

Sourcetype _ key
Sourceval bytes : int
Sourceval pkbytes : int
Sourceval skbytes : int
Sourceval equal : 'a key -> 'a key -> bool
Sourceval unsafe_sk_of_bytes : Bigstring.t -> secret key
Sourceval unsafe_pk_of_bytes : Bigstring.t -> public key
Sourceval unsafe_to_bytes : _ key -> Bigstring.t

unsafe_to_bytes k is the internal Bigstring.t where the key is stored. DO NOT MODIFY.

Sourceval blit_to_bytes : _ key -> ?pos:int -> Bigstring.t -> unit
Sourceval neuterize : _ key -> public key
Sourceval keypair : unit -> public key * secret key
Sourceval sign : sk:secret key -> msg:Bigstring.t -> signature:Bigstring.t -> unit

sign sk msg buf writes the signature of msg with sk at buf.

Sourceval verify : pk:public key -> msg:Bigstring.t -> signature:Bigstring.t -> bool