signature algorithm name (ex. SHA256withRSA)
key for signing. CryptoKey object, PKCS#8 PEM private key or HMAC hexadecimal key string
hexadecimal data to be signed
Optional
saltlen: numberRSA-PSS salt length when you don't want to use default length
hexadecimal signature value
await signHex("SHA256withECDSA", prvkeyObj, "616161") -> "631b3f..."
sign hexadecimal data with specified private key and algorithm