Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2690,16 +2690,6 @@ added: v15.6.0
Checks whether the public key for this certificate is consistent with
the given private key.

### `x509.extKeyUsage`

<!-- YAML
added: v15.6.0
-->

* Type: {string\[]}

An array detailing the key extended usages for this certificate.

### `x509.fingerprint`

<!-- YAML
Expand Down Expand Up @@ -2791,6 +2781,16 @@ added: v15.9.0
The issuer certificate or `undefined` if the issuer certificate is not
available.

### `x509.keyUsage`

<!-- YAML
added: v15.6.0
-->

* Type: {string\[]}

An array detailing the key extended usages for this certificate.

### `x509.publicKey`

<!-- YAML
Expand Down
2 changes: 1 addition & 1 deletion doc/api/webcrypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ added: v15.0.0
added: v15.0.0
-->

#### `pbkdb2Params.hash`
#### `pbkdf2Params.hash`

<!-- YAML
added: v15.0.0
Expand Down
5 changes: 5 additions & 0 deletions test/parallel/test-crypto-aes-wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ const key3 = Buffer.from('29c9eab5ed5ad44134a1437fe2e673b4d88a5b7c72e68454fea087
text: '12345678123456781234567812345678123'
},
].forEach(({ algorithm, key, iv, text }) => {
if (!crypto.getCiphers().includes(algorithm)) {
common.printSkipMessage(`Skipping unsupported ${algorithm} test case`);
return;
}

const cipher = crypto.createCipheriv(algorithm, key, iv);
const decipher = crypto.createDecipheriv(algorithm, key, iv);
const msg = decipher.update(cipher.update(text, 'utf8'), 'buffer', 'utf8');
Expand Down
5 changes: 5 additions & 0 deletions test/parallel/test-crypto-authenticated-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ function fstream(config) {
fstream.count = 0;

function test(config) {
if (!crypto.getCiphers().includes(config.cipher)) {
common.printSkipMessage(`unsupported cipher: ${config.cipher}`);
return;
}

direct(config);
mstream(config);
fstream(config);
Expand Down
Loading
Loading