Skip to content

Commit 4218573

Browse files
Flarnavsemozhetbyt
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 <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 2a875c3 commit 4218573

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
@@ -1776,8 +1776,8 @@ changes:
17761776
description: The default encoding for `password` if it is a string changed
17771777
from `binary` to `utf8`.
17781778
-->
1779-
- `password` {string|Buffer|TypedArray}
1780-
- `salt` {string|Buffer|TypedArray}
1779+
- `password` {string|Buffer|TypedArray|DataView}
1780+
- `salt` {string|Buffer|TypedArray|DataView}
17811781
- `iterations` {number}
17821782
- `keylen` {number}
17831783
- `digest` {string}
@@ -1846,8 +1846,8 @@ changes:
18461846
description: The default encoding for `password` if it is a string changed
18471847
from `binary` to `utf8`.
18481848
-->
1849-
- `password` {string|Buffer|TypedArray}
1850-
- `salt` {string|Buffer|TypedArray}
1849+
- `password` {string|Buffer|TypedArray|DataView}
1850+
- `salt` {string|Buffer|TypedArray|DataView}
18511851
- `iterations` {number}
18521852
- `keylen` {number}
18531853
- `digest` {string}
@@ -2144,8 +2144,8 @@ request.
21442144
<!-- YAML
21452145
added: v10.5.0
21462146
-->
2147-
- `password` {string|Buffer|TypedArray}
2148-
- `salt` {string|Buffer|TypedArray}
2147+
- `password` {string|Buffer|TypedArray|DataView}
2148+
- `salt` {string|Buffer|TypedArray|DataView}
21492149
- `keylen` {number}
21502150
- `options` {Object}
21512151
- `N` {number} CPU/memory cost parameter. Must be a power of two greater
@@ -2190,8 +2190,8 @@ crypto.scrypt('secret', 'salt', 64, { N: 1024 }, (err, derivedKey) => {
21902190
<!-- YAML
21912191
added: v10.5.0
21922192
-->
2193-
- `password` {string|Buffer|TypedArray}
2194-
- `salt` {string|Buffer|TypedArray}
2193+
- `password` {string|Buffer|TypedArray|DataView}
2194+
- `salt` {string|Buffer|TypedArray|DataView}
21952195
- `keylen` {number}
21962196
- `options` {Object}
21972197
- `N` {number} CPU/memory cost parameter. Must be a power of two greater

0 commit comments

Comments
 (0)