Lines Matching refs:name

23     name: 'TypeError',
29 name: 'TypeError',
78 name: 'TypeError',
95 name: 'TypeError',
100 name: 'TypeError',
121 name: 'TypeError',
135 name: 'TypeError',
150 name: 'TypeError',
157 name: 'TypeError',
186 name: 'TypeError',
193 name: 'TypeError',
202 subtle.generateKey({ name: 'AES-CBC', length: 128 }, false, ['encrypt']).then((key) => {
211 name: 'TypeError',
221 assert.deepStrictEqual(converters.AlgorithmIdentifier({ name: 'foo' }), { name: 'foo' });
247 name: 'TypeError',
271 name: 'TypeError',
280 const good = { name: 'RSA-PSS' };
284 name: 'TypeError',
286 message: `${prefix}: ${context} can not be converted to 'Algorithm' because 'name' is required in 'Algorithm'.`,
294 name: 'RSA-OAEP',
295 hash: { name: 'SHA-1' },
300 name: 'RSA-OAEP',
309 name: 'TypeError',
320 { name: 'RSA-OAEP', hash: { name: 'SHA-1' } },
321 { name: 'RSA-OAEP', hash: 'SHA-1' },
325 name: 'TypeError',
334 const good = { name: 'RSA-PSS', saltLength: 20 };
338 name: 'TypeError',
346 for (const good of [{ name: 'RSA-OAEP' }, { name: 'RSA-OAEP', label: Buffer.alloc(0) }]) {
353 for (const name of ['EcKeyImportParams', 'EcKeyGenParams']) {
354 const { [name]: converter } = converters;
356 const good = { name: 'ECDSA', namedCurve: 'P-256' };
360 name: 'TypeError',
362 message: `${prefix}: ${context} can not be converted to '${name}' because 'namedCurve' is required in '${name}'.`,
370 { name: 'ECDSA', hash: { name: 'SHA-1' } },
371 { name: 'ECDSA', hash: 'SHA-1' },
375 name: 'TypeError',
384 for (const name of ['HmacKeyGenParams', 'HmacImportParams']) {
385 const { [name]: converter } = converters;
388 { name: 'HMAC', hash: { name: 'SHA-1' } },
389 { name: 'HMAC', hash: { name: 'SHA-1' }, length: 20 },
390 { name: 'HMAC', hash: 'SHA-1' },
391 { name: 'HMAC', hash: 'SHA-1', length: 20 },
395 name: 'TypeError',
397 message: `${prefix}: ${context} can not be converted to '${name}' because 'hash' is required in '${name}'.`,
405 for (const name of ['AesKeyGenParams', 'AesDerivedKeyParams']) {
406 const { [name]: converter } = converters;
408 const good = { name: 'AES-CBC', length: 128 };
412 name: 'TypeError',
414 message: `${prefix}: ${context} can not be converted to '${name}' because 'length' is required in '${name}'.`,
422 { name: 'HKDF', hash: { name: 'SHA-1' }, salt: Buffer.alloc(0), info: Buffer.alloc(0) },
423 { name: 'HKDF', hash: 'SHA-1', salt: Buffer.alloc(0), info: Buffer.alloc(0) },
428 name: 'TypeError',
439 { name: 'PBKDF2', hash: { name: 'SHA-1' }, iterations: 5, salt: Buffer.alloc(0) },
440 { name: 'PBKDF2', hash: 'SHA-1', iterations: 5, salt: Buffer.alloc(0) },
445 name: 'TypeError',
455 const good = { name: 'AES-CBC', iv: Buffer.alloc(0) };
459 name: 'TypeError',
468 { name: 'AES-GCM', iv: Buffer.alloc(0) },
469 { name: 'AES-GCM', iv: Buffer.alloc(0), tagLength: 16 },
470 { name: 'AES-GCM', iv: Buffer.alloc(0), tagLength: 16, additionalData: Buffer.alloc(0) },
475 name: 'TypeError',
484 const good = { name: 'AES-CTR', counter: Buffer.alloc(0), length: 20 };
489 name: 'TypeError',
498 subtle.generateKey({ name: 'ECDH', namedCurve: 'P-256' }, false, ['deriveBits']).then((kp) => {
499 const good = { name: 'ECDH', public: kp.publicKey };
503 name: 'TypeError',
513 { name: 'Ed448', context: new Uint8Array() },
514 { name: 'Ed448' },