Skip to content

Commit e081866

Browse files
Flarnatargos
authored andcommitted
doc: add DataView to appropriate crypto methods
crypto.scrypt(), crypto.scryptSync(), crypto.pbkdf2(), and crypto.pbkdf2Sync() support also DataView like most other crypto APIs. PR-URL: #21549 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 7acfacb commit e081866

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/api/crypto.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,8 +1779,8 @@ changes:
17791779
description: The default encoding for `password` if it is a string changed
17801780
from `binary` to `utf8`.
17811781
-->
1782-
- `password` {string|Buffer|TypedArray}
1783-
- `salt` {string|Buffer|TypedArray}
1782+
- `password` {string|Buffer|TypedArray|DataView}
1783+
- `salt` {string|Buffer|TypedArray|DataView}
17841784
- `iterations` {number}
17851785
- `keylen` {number}
17861786
- `digest` {string}
@@ -1849,8 +1849,8 @@ changes:
18491849
description: The default encoding for `password` if it is a string changed
18501850
from `binary` to `utf8`.
18511851
-->
1852-
- `password` {string|Buffer|TypedArray}
1853-
- `salt` {string|Buffer|TypedArray}
1852+
- `password` {string|Buffer|TypedArray|DataView}
1853+
- `salt` {string|Buffer|TypedArray|DataView}
18541854
- `iterations` {number}
18551855
- `keylen` {number}
18561856
- `digest` {string}
@@ -2147,8 +2147,8 @@ request.
21472147
<!-- YAML
21482148
added: v10.5.0
21492149
-->
2150-
- `password` {string|Buffer|TypedArray}
2151-
- `salt` {string|Buffer|TypedArray}
2150+
- `password` {string|Buffer|TypedArray|DataView}
2151+
- `salt` {string|Buffer|TypedArray|DataView}
21522152
- `keylen` {number}
21532153
- `options` {Object}
21542154
- `N` {number} CPU/memory cost parameter. Must be a power of two greater
@@ -2193,8 +2193,8 @@ crypto.scrypt('secret', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
21932193
<!-- YAML
21942194
added: v10.5.0
21952195
-->
2196-
- `password` {string|Buffer|TypedArray}
2197-
- `salt` {string|Buffer|TypedArray}
2196+
- `password` {string|Buffer|TypedArray|DataView}
2197+
- `salt` {string|Buffer|TypedArray|DataView}
21982198
- `keylen` {number}
21992199
- `options` {Object}
22002200
- `N` {number} CPU/memory cost parameter. Must be a power of two greater

0 commit comments

Comments
 (0)