Skip to content

Commit 57d2e48

Browse files
authored
doc: remove ArrayBuffer from crypto.hash() data parameter type
PR-URL: #52069 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 25a6fb6 commit 57d2e48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/crypto.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3510,7 +3510,7 @@ Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
35103510
Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`
35113511
(for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES).
35123512

3513-
### `crypto.hash(algorith, data[, outputEncoding])`
3513+
### `crypto.hash(algorithm, data[, outputEncoding])`
35143514

35153515
<!-- YAML
35163516
added:
@@ -3520,7 +3520,7 @@ added:
35203520
> Stability: 1.2 - Release candidate
35213521
35223522
* `algorithm` {string|undefined}
3523-
* `data` {string|ArrayBuffer|Buffer|TypedArray|DataView} When `data` is a
3523+
* `data` {string|Buffer|TypedArray|DataView} When `data` is a
35243524
string, it will be encoded as UTF-8 before being hashed. If a different
35253525
input encoding is desired for a string input, user could encode the string
35263526
into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing

0 commit comments

Comments
 (0)