package tls-async

  1. Overview
  2. Docs
type t = [
  1. | `ED25519 of Mirage_crypto_ec.Ed25519.pub
  2. | `P224 of Mirage_crypto_ec.P224.Dsa.pub
  3. | `P256 of Mirage_crypto_ec.P256.Dsa.pub
  4. | `P384 of Mirage_crypto_ec.P384.Dsa.pub
  5. | `P521 of Mirage_crypto_ec.P521.Dsa.pub
  6. | `RSA of Mirage_crypto_pk.Rsa.pub
]
val pp : t Fmt.t
val id : t -> Cstruct.t
val fingerprint : ?hash:Mirage_crypto.Hash.hash -> t -> Cstruct.t
val key_type : t -> X509.Key_type.t
val encode_der : t -> Cstruct.t
val encode_pem : t -> Cstruct.t
val verify : Mirage_crypto.Hash.hash -> ?scheme:Key_type.signature_scheme -> signature:string -> t -> [ `Digest of string | `Message of string ] -> unit Core.Or_error.t
val decode_der : contents:string -> t Core.Or_error.t
val decode_pem : contents:string -> t Core.Or_error.t
OCaml

Innovation. Community. Security.