package key-parsers

  1. Overview
  2. Docs
type t = [
  1. | `DH of DH.Params.t * DH.Private.t
  2. | `DSA of DSA.Params.t * DSA.Private.t
  3. | `EC of EC.Params.t * EC.Private.t
  4. | `RSA of RSA.Private.t
]
val compare : t -> t -> Ppx_deriving_runtime.int
val to_yojson : t -> Yojson.Safe.t
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.