Signature.KeyCryptographic key material for signing and verification.
val symmetric : string -> tsymmetric secret creates a symmetric key for HMAC algorithms.
val ed25519 : priv:string -> pub:string -> ted25519 ~priv ~pub creates an Ed25519 key pair. Both priv and pub should be raw 32-byte keys.
val ed25519_priv : string -> ted25519_priv priv creates an Ed25519 private key (for signing only).
val ed25519_pub : string -> ted25519_pub pub creates an Ed25519 public key (for verification only).
val p256 : priv:Mirage_crypto_ec.P256.Dsa.priv -> tp256 ~priv creates a P-256 key from the private key (public key derived automatically).
val p256_pub : Mirage_crypto_ec.P256.Dsa.pub -> tp256_pub pub creates a P-256 public key (for verification only).
val p384 : priv:Mirage_crypto_ec.P384.Dsa.priv -> tp384 ~priv creates a P-384 key from the private key.
val p384_pub : Mirage_crypto_ec.P384.Dsa.pub -> tp384_pub pub creates a P-384 public key (for verification only).
val rsa : priv:Mirage_crypto_pk.Rsa.priv -> trsa ~priv creates an RSA key from the private key.
val rsa_pub : Mirage_crypto_pk.Rsa.pub -> trsa_pub pub creates an RSA public key (for verification only).
val can_sign : t -> boolcan_sign key returns true if the key can be used for signing.
val can_verify : t -> boolcan_verify key returns true if the key can be used for verification.
val algorithm : t -> Algorithm.t optionalgorithm key returns the algorithm associated with the key, if known.