| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,10 +23,10 @@ Last update: | |||
| 23 | 23 | - html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing | |
| 24 | 24 | - html/webappapis/structured-clone: https://github.com/web-platform-tests/wpt/tree/47d3fb280c/html/webappapis/structured-clone | |
| 25 | 25 | - html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/5873f2d8f1/html/webappapis/timers | |
| 26 | - - interfaces: https://github.com/web-platform-tests/wpt/tree/e1b27be06b/interfaces | ||
| 26 | + - interfaces: https://github.com/web-platform-tests/wpt/tree/a8392bd021/interfaces | ||
| 27 | 27 | - performance-timeline: https://github.com/web-platform-tests/wpt/tree/94caab7038/performance-timeline | |
| 28 | 28 | - resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing | |
| 29 | - - resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources | ||
| 29 | + - resources: https://github.com/web-platform-tests/wpt/tree/6a2f322376/resources | ||
| 30 | 30 | - streams: https://github.com/web-platform-tests/wpt/tree/f8f26a372f/streams | |
| 31 | 31 | - url: https://github.com/web-platform-tests/wpt/tree/e4a4672e9e/url | |
| 32 | 32 | - urlpattern: https://github.com/web-platform-tests/wpt/tree/f07c03cbed/urlpattern | |
@@ -35,6 +35,7 @@ Last update: | |||
| 35 | 35 | - wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi | |
| 36 | 36 | - web-locks: https://github.com/web-platform-tests/wpt/tree/10a122a6bc/web-locks | |
| 37 | 37 | - WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/2cb332d710/WebCryptoAPI | |
| 38 | + - webidl: https://github.com/web-platform-tests/wpt/tree/63ca529a02/webidl | ||
| 38 | 39 | - webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/2f96fa1996/webidl/ecmascript-binding/es-exceptions | |
| 39 | 40 | - webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel | |
| 40 | 41 | - webstorage: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/webstorage | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,7 +51,6 @@ function define_tests() { | |||
| 51 | 51 | var algorithmName = vector.algorithm; | |
| 52 | 52 | var password = vector.password; | |
| 53 | 53 | ||
| 54 | - // Key for normal operations | ||
| 55 | 54 | promises.push( | |
| 56 | 55 | subtle | |
| 57 | 56 | .importKey('raw-secret', password, algorithmName, false, [ | |
@@ -70,20 +69,3 @@ function define_tests() { | |||
| 70 | 69 | }); | |
| 71 | 70 | } | |
| 72 | 71 | } | |
| 73 | - | ||
| 74 | - function equalBuffers(a, b) { | ||
| 75 | - if (a.byteLength !== b.byteLength) { | ||
| 76 | - return false; | ||
| 77 | - } | ||
| 78 | - | ||
| 79 | - var aView = new Uint8Array(a); | ||
| 80 | - var bView = new Uint8Array(b); | ||
| 81 | - | ||
| 82 | - for (var i = 0; i < aView.length; i++) { | ||
| 83 | - if (aView[i] !== bView[i]) { | ||
| 84 | - return false; | ||
| 85 | - } | ||
| 86 | - } | ||
| 87 | - | ||
| 88 | - return true; | ||
| 89 | - } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | // META: title=WebCryptoAPI: deriveBits() Using Argon2 | |
| 2 | 2 | // META: timeout=long | |
| 3 | + // META: script=../util/helpers.js | ||
| 3 | 4 | // META: script=/common/subset-tests.js | |
| 4 | 5 | // META: script=argon2_vectors.js | |
| 5 | 6 | // META: script=argon2.js | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ function getTestData() { | |||
| 2 | 2 | // Test vectors from RFC 9106 | |
| 3 | 3 | // https://www.rfc-editor.org/rfc/rfc9106 | |
| 4 | 4 | ||
| 5 | - // Test vectors from RFC 9106 | ||
| 6 | 5 | var testVectors = [ | |
| 7 | 6 | // Argon2d test vector | |
| 8 | 7 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -224,37 +224,4 @@ function define_tests(algorithmName) { | |||
| 224 | 224 | .then(function(results) {return {privateKeys: privateKeys, publicKeys: publicKeys, noDeriveBitsKeys: noDeriveBitsKeys, ecdhKeys: ecdhPublicKeys}}); | |
| 225 | 225 | } | |
| 226 | 226 | ||
| 227 | - // Compares two ArrayBuffer or ArrayBufferView objects. If bitCount is | ||
| 228 | - // omitted, the two values must be the same length and have the same contents | ||
| 229 | - // in every byte. If bitCount is included, only that leading number of bits | ||
| 230 | - // have to match. | ||
| 231 | - function equalBuffers(a, b, bitCount) { | ||
| 232 | - var remainder; | ||
| 233 | - | ||
| 234 | - if (typeof bitCount === "undefined" && a.byteLength !== b.byteLength) { | ||
| 235 | - return false; | ||
| 236 | - } | ||
| 237 | - | ||
| 238 | - var aBytes = new Uint8Array(a); | ||
| 239 | - var bBytes = new Uint8Array(b); | ||
| 240 | - | ||
| 241 | - var length = a.byteLength; | ||
| 242 | - if (typeof bitCount !== "undefined") { | ||
| 243 | - length = Math.floor(bitCount / 8); | ||
| 244 | - } | ||
| 245 | - | ||
| 246 | - for (var i=0; i<length; i++) { | ||
| 247 | - if (aBytes[i] !== bBytes[i]) { | ||
| 248 | - return false; | ||
| 249 | - } | ||
| 250 | - } | ||
| 251 | - | ||
| 252 | - if (typeof bitCount !== "undefined") { | ||
| 253 | - remainder = bitCount % 8; | ||
| 254 | - return aBytes[length] >> (8 - remainder) === bBytes[length] >> (8 - remainder); | ||
| 255 | - } | ||
| 256 | - | ||
| 257 | - return true; | ||
| 258 | - } | ||
| 259 | - | ||
| 260 | 227 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | // META: title=WebCryptoAPI: deriveKey() Using ECDH with CFRG Elliptic Curves | |
| 2 | + // META: script=../util/helpers.js | ||
| 2 | 3 | // META: script=cfrg_curves_bits_fixtures.js | |
| 3 | 4 | // META: script=cfrg_curves_bits.js | |
| 4 | 5 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | // META: title=WebCryptoAPI: deriveKey() Using ECDH with CFRG Elliptic Curves | |
| 2 | + // META: script=../util/helpers.js | ||
| 2 | 3 | // META: script=cfrg_curves_bits_fixtures.js | |
| 3 | 4 | // META: script=cfrg_curves_bits.js | |
| 4 | 5 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -221,37 +221,4 @@ function define_tests(algorithmName) { | |||
| 221 | 221 | .then(function(results) {return {privateKeys: privateKeys, publicKeys: publicKeys, noDeriveKeyKeys: noDeriveKeyKeys, ecdhKeys: ecdhPublicKeys}}); | |
| 222 | 222 | } | |
| 223 | 223 | ||
| 224 | - // Compares two ArrayBuffer or ArrayBufferView objects. If bitCount is | ||
| 225 | - // omitted, the two values must be the same length and have the same contents | ||
| 226 | - // in every byte. If bitCount is included, only that leading number of bits | ||
| 227 | - // have to match. | ||
| 228 | - function equalBuffers(a, b, bitCount) { | ||
| 229 | - var remainder; | ||
| 230 | - | ||
| 231 | - if (typeof bitCount === "undefined" && a.byteLength !== b.byteLength) { | ||
| 232 | - return false; | ||
| 233 | - } | ||
| 234 | - | ||
| 235 | - var aBytes = new Uint8Array(a); | ||
| 236 | - var bBytes = new Uint8Array(b); | ||
| 237 | - | ||
| 238 | - var length = a.byteLength; | ||
| 239 | - if (typeof bitCount !== "undefined") { | ||
| 240 | - length = Math.floor(bitCount / 8); | ||
| 241 | - } | ||
| 242 | - | ||
| 243 | - for (var i=0; i<length; i++) { | ||
| 244 | - if (aBytes[i] !== bBytes[i]) { | ||
| 245 | - return false; | ||
| 246 | - } | ||
| 247 | - } | ||
| 248 | - | ||
| 249 | - if (typeof bitCount !== "undefined") { | ||
| 250 | - remainder = bitCount % 8; | ||
| 251 | - return aBytes[length] >> (8 - remainder) === bBytes[length] >> (8 - remainder); | ||
| 252 | - } | ||
| 253 | - | ||
| 254 | - return true; | ||
| 255 | - } | ||
| 256 | - | ||
| 257 | 224 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | // META: title=WebCryptoAPI: deriveKey() Using ECDH with CFRG Elliptic Curves | |
| 2 | + // META: script=../util/helpers.js | ||
| 2 | 3 | // META: script=cfrg_curves_bits_fixtures.js | |
| 3 | 4 | // META: script=cfrg_curves_keys.js | |
| 4 | 5 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | // META: title=WebCryptoAPI: deriveKey() Using ECDH with CFRG Elliptic Curves | |
| 2 | + // META: script=../util/helpers.js | ||
| 2 | 3 | // META: script=cfrg_curves_bits_fixtures.js | |
| 3 | 4 | // META: script=cfrg_curves_keys.js | |
| 4 | 5 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments