package conex

  1. Overview
  2. Docs
Establishing trust in community repositories

Install

dune-project
 Dependency

Authors

Maintainers

Sources

conex-1.0.0.tbz
sha256=8ba730718cbf0a381f0bce3493d18bfea1823bee0f43e4cbddad222b66dc164f
sha512=a76787c46b7c867e41daba10989841e95e7a2ba142dd09ae078649fd60340fcef703f41ddffc67b9c899fb4a2956906a0c8f9d04db7da435ac502b19851a490a

doc/conex.openssl/Conex_openssl/V/index.html

Module Conex_openssl.VSource

Sourceval check_version : unit -> (unit, string) result

check_openssl () checks the openssl version (required: >= 1.0.0).

include Conex_verify.S_BACK
Sourceval verify_rsa_pss : key:string -> data:string -> signature:string -> Conex_resource.identifier -> (unit, [> Conex_verify.error ]) result

verify_rsa_pss ~key ~data ~signature returns Ok () on success, otherwise a verification_error. Currently, SHA256 is used as hash algorithm.

Sourceval verify_ed25519 : key:string -> data:string -> signature:string -> Conex_resource.identifier -> (unit, [> Conex_verify.error ]) result

verify_ed25519 ~key ~data ~signature returns Ok () on success, otherwise a verification_error.

Sourceval sha256 : string -> string

sha256 str computes the SHA256 digest of str and converts it to hex.