Lines Matching refs:algorithm
12 async function testEncrypt({ keyBuffer, algorithm, plaintext, result }) { property
19 { name: algorithm.name },
23 const output = await subtle.encrypt(algorithm, key, plaintext);
32 const check = Buffer.from(await subtle.decrypt(algorithm, key, output));
40 async function testEncryptNoEncrypt({ keyBuffer, algorithm, plaintext }) { property
44 { name: algorithm.name },
48 return assert.rejects(subtle.encrypt(algorithm, key, plaintext), {
53 async function testEncryptNoDecrypt({ keyBuffer, algorithm, plaintext }) { property
57 { name: algorithm.name },
61 const output = await subtle.encrypt(algorithm, key, plaintext);
63 return assert.rejects(subtle.decrypt(algorithm, key, output), {
68 async function testEncryptWrongAlg({ keyBuffer, algorithm, plaintext }, alg) { property
69 assert.notStrictEqual(algorithm.name, alg);
77 return assert.rejects(subtle.encrypt(algorithm, key, plaintext), {
82 async function testDecrypt({ keyBuffer, algorithm, result }) { property
86 { name: algorithm.name },
90 await subtle.decrypt(algorithm, key, result);