Conversation
crypto.randomFillSync - update for JS example crypto.scrypt, crypto.scryptSync - update for options description
vsemozhetbyt
left a comment
There was a problem hiding this comment.
Thank you! Just some tiny nits.
doc/api/crypto.md
Outdated
| - `options` {Object} | ||
| - `N` {number} CPU/memory cost parameter. Must be a power of two greater | ||
| than one. **Default:** `16384`. | ||
| - `N` {number} CPU/memory cost parameter. Must be a power of two greater than one. **Default:** `16384`. |
There was a problem hiding this comment.
Please, wrap long lines at 80 characters or less. Just align with the first list item character, like this:
- `N` {number} CPU/memory cost parameter. Must be a power of two greater than
one. **Default:** `16384`.
doc/api/crypto.md
Outdated
| - `p` {number} Parallelization parameter. **Default:** `1`. | ||
| - `maxmem` {number} Memory upper bound. It is an error when (approximately) | ||
| `128*N*r > maxmem` **Default:** `32 * 1024 * 1024`. | ||
| - `maxmem` {number} Memory upper bound. It is an error when (approximately) `128*N*r > maxmem` **Default:** `32 * 1024 * 1024`. |
There was a problem hiding this comment.
Maybe `128*N*r -> `128 * N * r for better readability?
doc/api/crypto.md
Outdated
| - `options` {Object} | ||
| - `N` {number} CPU/memory cost parameter. Must be a power of two greater | ||
| than one. **Default:** `16384`. | ||
| - `N` {number} CPU/memory cost parameter. Must be a power of two greater than one. **Default:** `16384`. |
There was a problem hiding this comment.
The same re wrapping.
doc/api/crypto.md
Outdated
| - `p` {number} Parallelization parameter. **Default:** `1`. | ||
| - `maxmem` {number} Memory upper bound. It is an error when (approximately) | ||
| `128*N*r > maxmem` **Default:** `32 * 1024 * 1024`. | ||
| - `maxmem` {number} Memory upper bound. It is an error when (approximately) `128*N*r > maxmem` **Default:** `32 * 1024 * 1024`. |
There was a problem hiding this comment.
The same re wrapping and spaces.
crypto.scrypt, crypto.scryptSync - update for formatting
|
Done. Please check it. |
| - `options` {Object} | ||
| - `N` {number} CPU/memory cost parameter. Must be a power of two greater | ||
| than one. **Default:** `16384`. | ||
| than one. **Default:** `16384`. |
There was a problem hiding this comment.
Do we prefer this style @vsemozhetbyt? Seems like the current style causes issues when converted to HTML?
There was a problem hiding this comment.
Yeah, the extra indentation produces false code blocks in HTML (not sure if this is per Markdown spec or just a quirk of marked we use in md-2-HTML conversion). See in the last nightly docs:
vsemozhetbyt
left a comment
There was a problem hiding this comment.
Just two nits that can be addressed on landing if it is not convenient to fix them now)
doc/api/crypto.md
Outdated
| - `p` {number} Parallelization parameter. **Default:** `1`. | ||
| - `maxmem` {number} Memory upper bound. It is an error when (approximately) | ||
| `128*N*r > maxmem` **Default:** `32 * 1024 * 1024`. | ||
| `128 * N * r > maxmem` **Default:** `32 * 1024 * 1024`. |
There was a problem hiding this comment.
Sorry for not spotting this first time: it seems we lack the period between maxmem` and **Default:**. Can you add it since we are already here?)
There was a problem hiding this comment.
@vsemozhetbyt "it seems we lack the period between maxmem and **Default:**" What do you mean on "period" word? Could you please write an example?
There was a problem hiding this comment.
Sorry for the ambiguity) I mean we need this fix:
maxmem`. **Default:**
doc/api/crypto.md
Outdated
| - `p` {number} Parallelization parameter. **Default:** `1`. | ||
| - `maxmem` {number} Memory upper bound. It is an error when (approximately) | ||
| `128*N*r > maxmem` **Default:** `32 * 1024 * 1024`. | ||
| `128 * N * r > maxmem` **Default:** `32 * 1024 * 1024`. |
crypto.scrypt, crypto.scryptSync - added dot symbol
|
Please re-check it. |
PR-URL: #21500 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
|
Landed in 02fd93d |
PR-URL: #21500 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Description:
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes