From e081866f64990e6fc6b83632b78093aee0aa94f3 Mon Sep 17 00:00:00 2001 From: Gerhard Stoebich Date: Tue, 26 Jun 2018 23:43:01 +0200 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/21549 Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Vse Mozhet Byt Reviewed-By: Luigi Pinca --- doc/api/crypto.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 9076750c95b61a..4aea48ed2c61b1 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1779,8 +1779,8 @@ changes: description: The default encoding for `password` if it is a string changed from `binary` to `utf8`. --> -- `password` {string|Buffer|TypedArray} -- `salt` {string|Buffer|TypedArray} +- `password` {string|Buffer|TypedArray|DataView} +- `salt` {string|Buffer|TypedArray|DataView} - `iterations` {number} - `keylen` {number} - `digest` {string} @@ -1849,8 +1849,8 @@ changes: description: The default encoding for `password` if it is a string changed from `binary` to `utf8`. --> -- `password` {string|Buffer|TypedArray} -- `salt` {string|Buffer|TypedArray} +- `password` {string|Buffer|TypedArray|DataView} +- `salt` {string|Buffer|TypedArray|DataView} - `iterations` {number} - `keylen` {number} - `digest` {string} @@ -2147,8 +2147,8 @@ request. -- `password` {string|Buffer|TypedArray} -- `salt` {string|Buffer|TypedArray} +- `password` {string|Buffer|TypedArray|DataView} +- `salt` {string|Buffer|TypedArray|DataView} - `keylen` {number} - `options` {Object} - `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) => { -- `password` {string|Buffer|TypedArray} -- `salt` {string|Buffer|TypedArray} +- `password` {string|Buffer|TypedArray|DataView} +- `salt` {string|Buffer|TypedArray|DataView} - `keylen` {number} - `options` {Object} - `N` {number} CPU/memory cost parameter. Must be a power of two greater