RSA public key that will be used to envelop the data.
Given that it will be enveloped.
Filling option used in data encryption.
Unwrap data using an RSA key.
Returns the de-enveloped data.
HsmError If it is not possible to de-envelope the data or if there is an error in the operation.
Name of the RSA private key.
Given that it will be de-enveloped.
Filling option used in data encryption.
Signs data using an ECC private key.
Returns a buffer with the data signature.
HsmError If it is not possible to sign the data or there is an error in the operation.
Key name.
Algorithm used to generate the hash of the data.
Hash of the data to be signed.
Verifies a data signature using an ECC key.
Return true
if the signature is valid and false
otherwise.
HsmError If the signature cannot be verified or an error occurs in the operation.
Key name.
Algorithm used to generate the hash of the data.
Hash of the data to be verified.
Signature of the data to be verified.
Signs data using an EdDSA private key.
Returns a buffer with the data signature.
HsmError If it is not possible to sign the data or there is an error in the operation.
Key name.
Hash of the data to be signed.
Verifies a data signature using an EdDSA key.
Return true
if the signature is valid and false
otherwise.
HsmError If the signature cannot be verified or an error occurs in the operation.
Key name.
Hash of the data to be verified.
Signature of the data to be verified.
Reconstructs the secret M of N from the parts of the custodians. According to Shamir's secret-sharing pattern.
Returns a buffer with the reconstructed secret.
HsmError If it is not possible to reconstruct the secret or an error occurs in the operation.
Array of buffers with the parts of the secret generated by the mOfnSplit function.
Divides M from N in a secret. According to Shamir's secret sharing pattern.
Returns a buffer with the secret split.
HsmError If it is not possible to split the secret or an error occurs in the operation.
Minimum number of parts needed to reconstruct the secret. Minimum M_OF_N_SECRET_MIN_N and maximum must be less than or equal to n.
Total number of parts generated. Minimum of M_OF_N_SECRET_MIN_N and maximum of M_OF_N_SECRET_MAX_N.
Optional
secret: null | stringSecret that will be shared in several parts. It should be M_OF_N_SECRET_LEN characters. Can be passed NULL
so that a secret is randomly generated by the HSM, in which case the value will be returned in MofNSplit.
Signs data using an RSA private key.
Returns a buffer with the data signature.
HsmError If it is not possible to sign the data or there is an error in the operation.
Key name.
Algorithm used to generate the hash of the data.
Hash of the data to be signed.
Type of padding to be used in the signature.
Verifies a data signature using an RSA key.
Return true
if the signature is valid and false
otherwise.
HsmError If the signature cannot be verified or an error occurs in the operation.
Key name.
Algorithm used to generate the hash of the data.
Type of padding to be used in the signature.
Hash of the data to be verified.
Signature of the data to be verified.
Description
Envelopes data using an RSA public key.
Returns
Returns the enveloped data.
Throws
HsmError If the data cannot be enveloped or an error occurs in the operation.