package conex

  1. Overview
  2. Docs

Verification primitives

Implementations are provided in Conex_mirage_crypto and Conex_openssl.

type error = [
  1. | `UnknownKey of Conex_resource.identifier
  2. | `InvalidBase64Encoding of Conex_resource.identifier
  3. | `InvalidSignature of Conex_resource.identifier
  4. | `InvalidPublicKey of Conex_resource.identifier
]

Potential error case when verifying a signature

val pp_error : error Conex_utils.fmt

pp_error is a pretty printer for verification_error.

module type S = sig ... end

The verification module type

module type S_RSA_BACK = sig ... end

The verification backend, to be implemented by a crypto provider

module Make (C : S_RSA_BACK) : S

Instantiation.