Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
RSA private key pem encoding and decoding
RSA private keys as defined in PKCS 8: decoding and encoding in PEM format
val decode_pem : Cstruct.t -> (t, [> Rresult.R.msg ]) Rresult.result
decode_pem pem
is t
, where the private key of pem
is extracted. Both RSA PRIVATE KEY and PRIVATE KEY stanzas are supported.
val encode_pem : t -> Cstruct.t
encode_pem key
is pem
, the encoded private key (using PRIVATE KEY
).