Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 82edebf

Browse filesBrowse files
tniessentargos
authored andcommitted
test: add test for OAEP hash mismatch
PR-URL: #28335 Fixes: #25756 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
1 parent 54197ea commit 82edebf
Copy full SHA for 82edebf

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-crypto-rsa-dsa.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-rsa-dsa.js
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ test_rsa('RSA_PKCS1_OAEP_PADDING', undefined, 'sha1');
193193
test_rsa('RSA_PKCS1_OAEP_PADDING', 'sha1', undefined);
194194
test_rsa('RSA_PKCS1_OAEP_PADDING', 'sha256', 'sha256');
195195
test_rsa('RSA_PKCS1_OAEP_PADDING', 'sha512', 'sha512');
196+
common.expectsError(() => {
197+
test_rsa('RSA_PKCS1_OAEP_PADDING', 'sha256', 'sha512');
198+
}, {
199+
code: 'ERR_OSSL_RSA_OAEP_DECODING_ERROR'
200+
});
196201

197202
// The following RSA-OAEP test cases were created using the WebCrypto API to
198203
// ensure compatibility when using non-SHA1 hash functions.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.