mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
test: update WPT for WebCryptoAPI to 82c3d9069c
PR-URL: https://github.com/nodejs/node/pull/64977 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
9e59c1abd6
commit
f7804f7078
137 files changed
+3174
-7915
No files matched your search
+2
-2
@@ -1,6 +1,7 @@
|
||||
// META: title=WebCryptoAPI: wrapKey() and unwrapKey()
|
||||
// META: timeout=long
|
||||
// META: script=../util/helpers.js
|
||||
// META: script=../util/okp_key_fixtures.js
|
||||
// META: script=wrapKey_unwrapKey_vectors.js
|
||||
|
||||
// Tests for wrapKey and unwrapKey round tripping
|
||||
@@ -285,7 +286,7 @@
|
||||
}
|
||||
|
||||
if ("kty" in exportedKey && algorithmName === "AES-KW") {
|
||||
return JSON.stringify(exportedKey).length % 8 == 0;
|
||||
return JSON.stringify(exportedKey).length % 8 === 0;
|
||||
}
|
||||
|
||||
if ("kty" in exportedKey && algorithmName === "RSA-OAEP") {
|
||||
@@ -478,4 +479,3 @@
|
||||
|
||||
function str2ab(str) { return Uint8Array.from( str.split(''), function(s){return s.charCodeAt(0)} ); }
|
||||
function ab2str(ab) { return String.fromCharCode.apply(null, new Uint8Array(ab)); }
|
||||
|
||||
Reference in new issue
Block a user