package key-parsers

  1. Overview
  2. Docs
type t = [
  1. | `RSA of RSA.Public.t
  2. | `DSA of DSA.Params.t * DSA.Public.t
  3. | `EC of EC.Params.t * EC.Public.t
  4. | `DH of DH.Params.t * DH.Public.t
]
val compare : t -> t -> Ppx_deriving_runtime.int
val equal : t -> t -> Ppx_deriving_runtime.bool
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val show : t -> Ppx_deriving_runtime.string
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val bin_t : t Bin_prot.Type_class.t
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (int -> t) Bin_prot.Read.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_writer_t : t Bin_prot.Type_class.writer
val rsa_grammar : RSA.Public.t Asn.t
val dsa_grammar : (DSA.Params.t * DSA.Public.t) Asn.t
val ec_grammar : (EC.Params.t * EC.Public.t) Asn.t
val dh_grammar : (DH.Params.t * DH.Public.t) Asn.t
val encode : t -> Cstruct.t
val encode_rsa : RSA.Public.t -> Cstruct.t
val encode_dsa : (DSA.Params.t * DSA.Public.t) -> Cstruct.t
val encode_ec : (EC.Params.t * EC.Public.t) -> Cstruct.t
val encode_dh : (DH.Params.t * DH.Public.t) -> Cstruct.t
val decode : Cstruct.t -> (t, string) Result.result
val decode_rsa : Cstruct.t -> (RSA.Public.t, string) Result.result
val decode_dsa : Cstruct.t -> (DSA.Params.t * DSA.Public.t, string) Result.result
val decode_ec : Cstruct.t -> (EC.Params.t * EC.Public.t, string) Result.result
val decode_dh : Cstruct.t -> (DH.Params.t * DH.Public.t, string) Result.result
OCaml

Innovation. Community. Security.