diff --git a/lib/internal/crypto/aes.js b/lib/internal/crypto/aes.js index 324662e1f8b1b4..48cde6b31972e0 100644 --- a/lib/internal/crypto/aes.js +++ b/lib/internal/crypto/aes.js @@ -60,11 +60,6 @@ const { generateKey, } = require('internal/crypto/keygen'); -const { - validateInteger, - validateOneOf, -} = require('internal/validators'); - const kMaxCounterLength = 128; const kTagLengths = [32, 64, 96, 104, 112, 120, 128]; @@ -227,8 +222,11 @@ function aesCipher(mode, key, data, algorithm) { async function aesGenerateKey(algorithm, extractable, keyUsages) { const { name, length } = algorithm; - validateInteger(length, 'algorithm.length'); - validateOneOf(length, 'algorithm.length', kAesKeyLengths); + if (!ArrayPrototypeIncludes(kAesKeyLengths, length)) { + throw lazyDOMException( + 'AES key length must be 128, 192, or 256 bits', + 'OperationError'); + } const checkUsages = ['wrapKey', 'unwrapKey']; if (name !== 'AES-KW') diff --git a/test/parallel/test-webcrypto-keygen.js b/test/parallel/test-webcrypto-keygen.js index e61d7c9b913abf..9c79e1517c07a8 100644 --- a/test/parallel/test-webcrypto-keygen.js +++ b/test/parallel/test-webcrypto-keygen.js @@ -512,14 +512,14 @@ const vectors = { [1, 100, 257].forEach(async (length) => { await assert.rejects( subtle.generateKey({ name, length }, true, usages), { - code: 'ERR_INVALID_ARG_VALUE' + name: 'OperationError' }); }); ['', {}, [], false, null, undefined].forEach(async (length) => { await assert.rejects( subtle.generateKey({ name, length }, true, usages), { - code: 'ERR_INVALID_ARG_TYPE' + name: 'OperationError', }); }); } diff --git a/test/wpt/status/WebCryptoAPI.json b/test/wpt/status/WebCryptoAPI.json index 66754c3bbd6f8d..65a03fa6a93a3b 100644 --- a/test/wpt/status/WebCryptoAPI.json +++ b/test/wpt/status/WebCryptoAPI.json @@ -2687,696 +2687,24 @@ "generateKey/failures_AES-CBC.https.any.js": { "fail": { "expected": [ - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])" ] } }, "generateKey/failures_AES-CTR.https.any.js": { "fail": { "expected": [ - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])" ] } }, "generateKey/failures_AES-GCM.https.any.js": { "fail": { "expected": [ - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, encrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, decrypt])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey])" ] } }, "generateKey/failures_AES-KW.https.any.js": { "fail": { "expected": [ - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, false, [])", - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, true, [])", - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, false, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 64, name: AES-KW}, true, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, false, [])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, true, [])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, false, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 127, name: AES-KW}, true, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, false, [])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, true, [])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, false, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 129, name: AES-KW}, true, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, false, [])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, true, [])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, false, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 255, name: AES-KW}, true, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, false, [])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, true, [])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, false, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 257, name: AES-KW}, true, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, false, [wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, true, [wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, false, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, true, [unwrapKey, wrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, false, [unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, true, [unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, false, [])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, true, [])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, false, [wrapKey, unwrapKey, wrapKey, unwrapKey])", - "Bad algorithm property: generateKey({length: 512, name: AES-KW}, true, [wrapKey, unwrapKey, wrapKey, unwrapKey])" ] } },