File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3630,7 +3630,7 @@ Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`.
3630
3630
Both keys must have the same ` asymmetricKeyType ` , which must be one of ` 'dh' `
3631
3631
(for Diffie-Hellman), ` 'ec' ` (for ECDH), ` 'x448' ` , or ` 'x25519' ` (for ECDH-ES).
3632
3632
3633
- ### ` crypto.hash(algorith , data[, outputEncoding]) `
3633
+ ### ` crypto.hash(algorithm , data[, outputEncoding]) `
3634
3634
3635
3635
<!-- YAML
3636
3636
added:
@@ -3640,7 +3640,7 @@ added:
3640
3640
> Stability: 1.2 - Release candidate
3641
3641
3642
3642
* ` algorithm ` {string|undefined}
3643
- * ` data ` {string|ArrayBuffer| Buffer|TypedArray|DataView} When ` data ` is a
3643
+ * ` data ` {string|Buffer|TypedArray|DataView} When ` data ` is a
3644
3644
string, it will be encoded as UTF-8 before being hashed. If a different
3645
3645
input encoding is desired for a string input, user could encode the string
3646
3646
into a ` TypedArray ` using either ` TextEncoder ` or ` Buffer.from() ` and passing
You can’t perform that action at this time.
0 commit comments