package key-parsers

  1. Overview
  2. Docs
type t = [
  1. | `DSA of DSA.Params.t * DSA.Private.t
  2. | `EC of Asn.OID.t * Cstruct.t
  3. | `RSA of RSA.Private.t
  4. | `Unknown of Asn.OID.t
]
val grammar : t Asn.t
val encode : t -> Cstruct.t
val decode : Cstruct.t -> t
val encode_rsa : RSA.Private.t -> Cstruct.t
val decode_rsa : Cstruct.t -> RSA.Private.t