The polymorphic variant of private keys.
val decode_der : ?sloppy:bool -> Cstruct.t -> (t, [> Rresult.R.msg ]) Rresult.resultdecode_der ~sloppy der is t, where the private key of der is extracted. If sloppy is provided and true (default: false), the key will be reconstructed from its prime numbers and public exponent. It must be in PKCS8 (RFC 5208, Section 5) PrivateKeyInfo structure.
encode_der key is der, the encoded private key as PKCS8 (RFC 5208, Section 5) PrivateKeyInfo structure.
val decode_pem : ?sloppy:bool -> Cstruct.t -> (t, [> Rresult.R.msg ]) Rresult.resultdecode_pem ~sloppy pem is t, where the private key of pem is extracted. If sloppy is provided and true (default: false), the key will be reconstructed from its prime numbers and public exponent. Both RSA PRIVATE KEY and PRIVATE KEY stanzas are supported.