crypto.Sign.sign()
Description
Calculates signature.
Syntax
sign.sign(key)sign.sign(key,{id,})
Parameters
sign(key, options?)
keyoptions?
A PrivateKey object containing the private key used in signing.
Options including:
- id - A Data object containing the identifier used by certain algorithms such as SM2.
Return Value
A Data object containing the signature.