Skip to content

Commit 572b090

Browse files
committed
[Squash] nits
1 parent 2b141c1 commit 572b090

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/api/errors.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ Used when an invalid value for the `format` argument has been passed to the
640640
<a id="ERR_CRYPTO_INVALID_DIGEST"></a>
641641
### ERR_CRYPTO_INVALID_DIGEST
642642

643-
Used when an invalid crypto digest algorithm is specified.
643+
Used when an invalid [crypto digest algorithm][] is specified.
644644

645645
<a id="ERR_DNS_SET_SERVERS_FAILED"></a>
646646
### ERR_DNS_SET_SERVERS_FAILED
@@ -1360,6 +1360,7 @@ closed.
13601360
[Node.js Error Codes]: #nodejs-error-codes
13611361
[V8's stack trace API]: https://github.com/v8/v8/wiki/Stack-Trace-API
13621362
[WHATWG URL API]: url.html#url_the_whatwg_url_api
1363+
[crypto digest algorithm]: crypto.html#crypto_crypto_gethashes
13631364
[domains]: domain.html
13641365
[event emitter-based]: events.html#events_class_eventemitter
13651366
[file descriptors]: https://en.wikipedia.org/wiki/File_descriptor

test/parallel/test-crypto-pbkdf2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ if (!common.hasCrypto)
66
const assert = require('assert');
77
const crypto = require('crypto');
88

9+
const { INT_MAX } = process.binding('constants').crypto;
10+
911
//
1012
// Test PBKDF2 with RFC 6070 test vectors (except #4)
1113
//
@@ -63,7 +65,7 @@ common.expectsError(
6365
}
6466
);
6567

66-
[Infinity, -Infinity, NaN, -1, 4073741824].forEach((i) => {
68+
[Infinity, -Infinity, NaN, -1, 4073741824, INT_MAX + 1].forEach((i) => {
6769
common.expectsError(
6870
() => {
6971
crypto.pbkdf2('password', 'salt', 1, i, 'sha256',

0 commit comments

Comments
 (0)