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