Lines Matching refs:hash
295 hash: { name: 'SHA-1' },
301 hash: 'SHA-1',
307 for (const required of ['hash', 'publicExponent', 'modulusLength']) {
320 { name: 'RSA-OAEP', hash: { name: 'SHA-1' } },
321 { name: 'RSA-OAEP', hash: 'SHA-1' },
324 assert.throws(() => converters.RsaHashedImportParams({ ...good, hash: undefined }, opts), {
327 message: `${prefix}: ${context} can not be converted to 'RsaHashedImportParams' because 'hash' is required in 'RsaHashedImportParams'.`,
370 { name: 'ECDSA', hash: { name: 'SHA-1' } },
371 { name: 'ECDSA', hash: 'SHA-1' },
374 assert.throws(() => converters.EcdsaParams({ ...good, hash: undefined }, opts), {
377 message: `${prefix}: ${context} can not be converted to 'EcdsaParams' because 'hash' is required in 'EcdsaParams'.`,
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 },
394 assert.throws(() => converter({ ...good, hash: undefined }, opts), {
397 message: `${prefix}: ${context} can not be converted to '${name}' because 'hash' 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) },
426 for (const required of ['hash', 'salt', 'info']) {
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) },
443 for (const required of ['hash', 'iterations', 'salt']) {