From a6473a89beb0a6ef822ef5d7cf7b56084b2350d2 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Wed, 13 Mar 2024 23:56:33 +0800 Subject: [PATCH] doc: remove ArrayBuffer from crypto.hash() data parameter type PR-URL: https://github.com/nodejs/node/pull/52069 Reviewed-By: Antoine du Hamel Reviewed-By: Marco Ippolito Reviewed-By: Chengzhong Wu --- doc/api/crypto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index c433d1d112cf19..1f7c55764514d9 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -3630,7 +3630,7 @@ Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`. Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'` (for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES). -### `crypto.hash(algorith, data[, outputEncoding])` +### `crypto.hash(algorithm, data[, outputEncoding])`