Documents for @litert/signatures
    Preparing search index...

    Function signStream

    • Sign the input stream.

      Parameters

      • algo:
            | "sha1"
            | "sha224"
            | "sha256"
            | "sha3-224"
            | "sha3-256"
            | "sha3-384"
            | "sha3-512"
            | "sha384"
            | "sha512"

        The digest/hash algorithm to be used.

      • privateKey: string | Buffer<ArrayBufferLike> | KeyObject

        The private key to sign the data.

      • message: Readable

        The input stream to be signed.

      • Optionalopts: IEcdsaOptions

        The options for signing.

      Returns Promise<Buffer<ArrayBufferLike>>

      Return a promise that resolves to a Buffer that contains the signature of the input stream.