| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ Last update: | |||
| 32 | 32 | - user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing | |
| 33 | 33 | - wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi | |
| 34 | 34 | - wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi | |
| 35 | - - WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/591c95ce61/WebCryptoAPI | ||
| 35 | + - WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/19d82c57ab/WebCryptoAPI | ||
| 36 | 36 | - webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/a370aad338/webidl/ecmascript-binding/es-exceptions | |
| 37 | 37 | - webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel | |
| 38 | 38 | - webstorage: https://github.com/web-platform-tests/wpt/tree/1291340aaa/webstorage | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,27 +2,27 @@ | |||
| 2 | 2 | // helper functions that generate all possible test parameters for | |
| 3 | 3 | // different situations. | |
| 4 | 4 | function getValidKeyData(algorithm) { | |
| 5 | - return validKeyData[algorithm.name]; | ||
| 5 | + return validKeyData[algorithm.name || algorithm]; | ||
| 6 | 6 | } | |
| 7 | 7 | ||
| 8 | 8 | function getBadKeyLengthData(algorithm) { | |
| 9 | - return badKeyLengthData[algorithm.name]; | ||
| 9 | + return badKeyLengthData[algorithm.name || algorithm]; | ||
| 10 | 10 | } | |
| 11 | 11 | ||
| 12 | 12 | function getMissingJWKFieldKeyData(algorithm) { | |
| 13 | - return missingJWKFieldKeyData[algorithm.name]; | ||
| 13 | + return missingJWKFieldKeyData[algorithm.name || algorithm]; | ||
| 14 | 14 | } | |
| 15 | 15 | ||
| 16 | 16 | function getMismatchedJWKKeyData(algorithm) { | |
| 17 | - return mismatchedJWKKeyData[algorithm.name]; | ||
| 17 | + return mismatchedJWKKeyData[algorithm.name || algorithm]; | ||
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | function getMismatchedKtyField(algorithm) { | |
| 21 | - return mismatchedKtyField[algorithm.name]; | ||
| 21 | + return mismatchedKtyField[algorithm.name || algorithm]; | ||
| 22 | 22 | } | |
| 23 | 23 | ||
| 24 | 24 | function getMismatchedCrvField(algorithm) { | |
| 25 | - return mismatchedCrvField[algorithm.name]; | ||
| 25 | + return mismatchedCrvField[algorithm.name || algorithm]; | ||
| 26 | 26 | } | |
| 27 | 27 | ||
| 28 | 28 | var validKeyData = { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -93,6 +93,10 @@ function objectToString(obj) { | |||
| 93 | 93 | // Is key a CryptoKey object with correct algorithm, extractable, and usages? | |
| 94 | 94 | // Is it a secret, private, or public kind of key? | |
| 95 | 95 | function assert_goodCryptoKey(key, algorithm, extractable, usages, kind) { | |
| 96 | + if (typeof algorithm === "string") { | ||
| 97 | + algorithm = { name: algorithm }; | ||
| 98 | + } | ||
| 99 | + | ||
| 96 | 100 | var correctUsages = []; | |
| 97 | 101 | ||
| 98 | 102 | var registeredAlgorithmName; | |
@@ -203,6 +207,7 @@ function allAlgorithmSpecifiersFor(algorithmName) { | |||
| 203 | 207 | results.push({name: algorithmName, namedCurve: curveName}); | |
| 204 | 208 | }); | |
| 205 | 209 | } else if (algorithmName.toUpperCase().substring(0, 1) === "X" || algorithmName.toUpperCase().substring(0, 2) === "ED") { | |
| 210 | + results.push(algorithmName); | ||
| 206 | 211 | results.push({ name: algorithmName }); | |
| 207 | 212 | } | |
| 208 | 213 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,7 +88,7 @@ | |||
| 88 | 88 | "path": "wasm/webapi" | |
| 89 | 89 | }, | |
| 90 | 90 | "WebCryptoAPI": { | |
| 91 | - "commit": "591c95ce6174690b92833cd92859ce2807714591", | ||
| 91 | + "commit": "19d82c57abc7494bdc459a338c5dcfd79e818b4a", | ||
| 92 | 92 | "path": "WebCryptoAPI" | |
| 93 | 93 | }, | |
| 94 | 94 | "webidl/ecmascript-binding/es-exceptions": { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments