Lines Matching refs:algorithm
52 function parameterString(algorithm, extractable, usages) { argument
53 if (typeof algorithm !== "object" && typeof algorithm !== "string") {
54 alert(algorithm);
58 objectToString(algorithm) + ", " +
71 function testError(algorithm, extractable, usages, expectedError, testTag) { argument
73 return crypto.subtle.generateKey(algorithm, extractable, usages)
83 }, testTag + ": generateKey" + parameterString(algorithm, extractable, usages));
160 badAlgorithmNames.forEach(function(algorithm) { argument
164 testError(algorithm, extractable, usages, "NotSupportedError", "Bad algorithm");
176 allAlgorithmSpecifiersFor(name).forEach(function(algorithm) { argument
179 testError(algorithm, extractable, usages, "SyntaxError", "Bad usages");
192 badAlgorithmPropertySpecifiersFor(name).forEach(function(algorithm) { argument
197 … testError(algorithm, extractable, usages, "NotSupportedError", "Bad algorithm property");
199 … testError(algorithm, extractable, usages, "OperationError", "Bad algorithm property");
211 allAlgorithmSpecifiersFor(name).forEach(function(algorithm) { argument
214 testError(algorithm, extractable, usages, "SyntaxError", "Empty usages");