Library API
    Preparing search index...

    Function signData

    • Cryptographically signs raw data using the provided CryptoKey.

      Parameters

      • data: string | BinaryData

        The string or binary data to sign

      • privateKey: CryptoKey

        The private CryptoKey with 'sign' usage

      • alg: AlgorithmIdentifier = keys.SignKey

        The signature algorithm identifier (default: keys.SignKey)

      Returns Promise<Uint8Array<ArrayBufferLike>>

      A promise resolving to the signature Uint8Array