Skip to main content
Sign.prototype.update - node__crypto.d.ts - Node documentation
method Sign.prototype.update

Usage in Deno

```typescript import { Sign } from "node:node__crypto.d.ts"; ```
Sign.prototype.update(data: BinaryLike): this
Updates the `Sign` content with the given `data`, the encoding of which is given in `inputEncoding`. If `encoding` is not provided, and the `data` is a string, an encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. This can be called many times with new data as it is streamed.

Parameters

Return Type

this
Sign.prototype.update(
data: string,
inputEncoding: Encoding,
): this

Parameters

data: string
inputEncoding: Encoding

Return Type

this