package x509

  1. Overview
  2. Docs

Decoding and encoding of public keys in PEM format as defined in PKCS 8

PEM encoded RSA keys

val of_pem_cstruct : Cstruct.t -> public_key list

of_pem_cstruct pem is t list, where all public keys of pem are extracted

val of_pem_cstruct1 : Cstruct.t -> public_key

of_pem_cstruct1 pem is t, where the public key of pem is extracted

val to_pem_cstruct : public_key list -> Cstruct.t

to_pem_cstruct public_keys is pem, the pem encoded public keys.

val to_pem_cstruct1 : public_key -> Cstruct.t

to_pem_cstruct1 public_key is pem, the pem encoded public key.

OCaml

Innovation. Community. Security.