Module X509_async.Public_key

type t = [
  1. | `ED25519 of Mirage_crypto_ec.Ed25519.pub
  2. | `P256 of Mirage_crypto_ec.P256.Dsa.pub
  3. | `P384 of Mirage_crypto_ec.P384.Dsa.pub
  4. | `P521 of Mirage_crypto_ec.P521.Dsa.pub
  5. | `RSA of Mirage_crypto_pk.Rsa.pub
]
val pp : t Fmt.t
val id : t -> string
val fingerprint : ?hash:Digestif.hash' -> t -> string
val key_type : t -> X509.Key_type.t
val encode_der : t -> string
val encode_pem : t -> string
val verify : Digestif.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