Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val decode_priv :
string ->
Conex_resource.timestamp ->
string ->
(t, string) result
decode_priv id ts data
decodes the private key from data
and returns a t
or an error.
val bits : t -> int
bits t
is the number of bits in t
.
val created : t -> Conex_resource.timestamp
created t
is the timestamp of creation of t
.
val id : t -> Conex_resource.identifier
id t
is the identifier of t
.
generate_rsa ~bits ()
generates an RSA private key.
val pub_of_priv_rsa : t -> string
pub_of_priv_rsa priv
is the PEM-encoded PKCS8 public key of priv
.
sign_pss priv data
is either the raw PSS signature of data
using priv
or an error.