Module P256.SHA2_384
type bytes
= SharedDefs.CBytes.t
val sign : sk:bytes -> msg:bytes -> k:bytes -> bytes option
sign sk msg k
attempts to sign the messagemsg
with secret keysk
and signing secretk
and returns the signature if successful.
val verify : pk:bytes -> msg:bytes -> signature:bytes -> bool
verify pk msg signature
checks thesignature
ofmsg
using public keypk
and returns true if it is valid.
module Noalloc : sig ... end
Versions of these functions which write their output in a buffer passed in as an argument