- sign(
msg: Msg,
privateKey: CryptoKey,
__namedParameters?: { format: "base64" },
charSize?: CharSize,
hashAlg?: HashAlg,
): Promise<string> Parameters
- msg: Msg
- privateKey: CryptoKey
Optional
__namedParameters: { format: "base64" }Optional
charSize: CharSizeOptional
hashAlg: HashAlg
Returns Promise<string>
- sign(
msg: Msg,
privateKey: CryptoKey,
__namedParameters: { format: "raw" },
charSize?: CharSize,
hashAlg?: HashAlg,
): Promise<ArrayBuffer> Parameters
- msg: Msg
- privateKey: CryptoKey
- __namedParameters: { format: "raw" }
Optional
charSize: CharSizeOptional
hashAlg: HashAlg
Returns Promise<ArrayBuffer>
Sign the given message. Return the signature as an
ArrayBuffer
.