Bug 1286250 - return correct error code for bad AES key length r=keeler

Differential Revision: https://phabricator.services.mozilla.com/D79455
This commit is contained in:
R. Martinho Fernandes 2020-07-08 09:23:44 +00:00
Родитель 92d6c2f06f
Коммит 6636ae8e72
5 изменённых файлов: 16 добавлений и 1837 удалений

Просмотреть файл

@ -208,7 +208,7 @@ inline nsresult GetKeyLengthForAlgorithm(JSContext* aCx,
if (params.mLength != 128 && params.mLength != 192 &&
params.mLength != 256) {
return NS_ERROR_DOM_DATA_ERR;
return NS_ERROR_DOM_OPERATION_ERR;
}
aLength = params.mLength;

Просмотреть файл

@ -381,6 +381,21 @@ TestArray.addTest(
}
);
// -----------------------------------------------------------------------------
TestArray.addTest(
"Fail generating an AES key of wrong length",
function() {
var that = this;
var alg = { name: "AES-CBC", length: 64 };
crypto.subtle.generateKey(alg, false, ["encrypt"]).then(
error(that),
complete(that, function(e) {
return e.name == "OperationError";
})
);
}
);
// -----------------------------------------------------------------------------
TestArray.addTest(
"Generate a 1024-bit RSA key",

Просмотреть файл

@ -614,618 +614,6 @@
[Bad usages: generateKey({length: 256, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey, deriveBits\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CBC}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Empty usages: generateKey({length: 128, name: AES-CBC}, false, [\])]
expected: FAIL

Просмотреть файл

@ -611,618 +611,6 @@
[Bad usages: generateKey({length: 256, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey, deriveBits\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-CTR}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Empty usages: generateKey({length: 128, name: AES-CTR}, false, [\])]
expected: FAIL

Просмотреть файл

@ -614,618 +614,6 @@
[Bad usages: generateKey({length: 256, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey, deriveBits\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 64, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 127, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 129, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 255, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 257, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, decrypt, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, wrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, encrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, wrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, decrypt\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey, wrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, false, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Bad algorithm property: generateKey({length: 512, name: AES-GCM}, true, [encrypt, decrypt, wrapKey, unwrapKey, encrypt, decrypt, wrapKey, unwrapKey\])]
expected: FAIL
[Empty usages: generateKey({length: 128, name: AES-GCM}, false, [\])]
expected: FAIL