package key-parsers

  1. Overview
  2. Docs
type t = [
  1. | `RSA of Rsa.Private.t
  2. | `DSA of Dsa.Params.t * Dsa.Private.t
  3. | `EC of Ec.Params.t * Ec.Private.t
  4. | `DH of Dh.Params.t * Dh.Private.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 rsa_grammar : Rsa.Private.t Asn.t
val dsa_grammar : (Dsa.Params.t * Dsa.Private.t) Asn.t
val ec_grammar : (Ec.Params.t * Ec.Private.t) Asn.t
val dh_grammar : (Dh.Params.t * Dh.Private.t) Asn.t
val encode : t -> Cstruct.t
val encode_rsa : Rsa.Private.t -> Cstruct.t
val encode_dsa : (Dsa.Params.t * Dsa.Private.t) -> Cstruct.t
val encode_ec : (Ec.Params.t * Ec.Private.t) -> Cstruct.t
val encode_dh : (Dh.Params.t * Dh.Private.t) -> Cstruct.t
val decode : Cstruct.t -> (t, string) Result.result
val decode_rsa : Cstruct.t -> (Rsa.Private.t, string) Result.result
val decode_dsa : Cstruct.t -> (Dsa.Params.t * Dsa.Private.t, string) Result.result
val decode_ec : Cstruct.t -> (Ec.Params.t * Ec.Private.t, string) Result.result
val decode_dh : Cstruct.t -> (Dh.Params.t * Dh.Private.t, string) Result.result
OCaml

Innovation. Community. Security.