package sodium

  1. Overview
  2. Docs
type group_elt
type integer
val primitive : string

Primitive used by this implementation. Currently "curve25519".

val group_elt_size : int

Size of group elements, in bytes.

val integer_size : int

Size of integers, in bytes.

val equal_group_elt : group_elt -> group_elt -> bool

equal_group_elt a b checks a and b for equality in constant time.

val equal_integer : integer -> integer -> bool

equal_integer a b checks a and b for equality in constant time.

val mult : integer -> group_elt -> group_elt

mult n p multiplies a group element p by an integer n.

val base : integer -> group_elt

base n computes the scalar product of a standard group element and an integer n.

module type S = sig ... end
module Bytes : S with type storage = Bytes.t
module Bigbytes : S with type storage = bigbytes
OCaml

Innovation. Community. Security.