Lines Matching refs:required

24     message: `${prefix}: 3 arguments required, but only 0 present.`
30 message: `${prefix}: 1 argument required, but only 0 present.`
286 message: `${prefix}: ${context} can not be converted to 'Algorithm' because 'name' is required in 'Algorithm'.`,
307 for (const required of ['hash', 'publicExponent', 'modulusLength']) {
308 assert.throws(() => converters.RsaHashedKeyGenParams({ ...good, [required]: undefined }, opts), {
311 message: `${prefix}: ${context} can not be converted to 'RsaHashedKeyGenParams' because '${required}' is required in 'RsaHashedKeyGenParams'.`,
327 message: `${prefix}: ${context} can not be converted to 'RsaHashedImportParams' because 'hash' is required in 'RsaHashedImportParams'.`,
340 message: `${prefix}: ${context} can not be converted to 'RsaPssParams' because 'saltLength' is required in 'RsaPssParams'.`,
362 message: `${prefix}: ${context} can not be converted to '${name}' because 'namedCurve' is required in '${name}'.`,
377 message: `${prefix}: ${context} can not be converted to 'EcdsaParams' because 'hash' is required in 'EcdsaParams'.`,
397 message: `${prefix}: ${context} can not be converted to '${name}' because 'hash' is required in '${name}'.`,
414 message: `${prefix}: ${context} can not be converted to '${name}' because 'length' is required in '${name}'.`,
426 for (const required of ['hash', 'salt', 'info']) {
427 assert.throws(() => converters.HkdfParams({ ...good, [required]: undefined }, opts), {
430 message: `${prefix}: ${context} can not be converted to 'HkdfParams' because '${required}' is required in 'HkdfParams'.`,
443 for (const required of ['hash', 'iterations', 'salt']) {
444 assert.throws(() => converters.Pbkdf2Params({ ...good, [required]: undefined }, opts), {
447 message: `${prefix}: ${context} can not be converted to 'Pbkdf2Params' because '${required}' is required in 'Pbkdf2Params'.`,
461 message: `${prefix}: ${context} can not be converted to 'AesCbcParams' because 'iv' is required in 'AesCbcParams'.`,
477 message: `${prefix}: ${context} can not be converted to 'AesGcmParams' because 'iv' is required in 'AesGcmParams'.`,
487 for (const required of ['counter', 'length']) {
488 assert.throws(() => converters.AesCtrParams({ ...good, [required]: undefined }, opts), {
491 message: `${prefix}: ${context} can not be converted to 'AesCtrParams' because '${required}' is required in 'AesCtrParams'.`,
505 message: `${prefix}: ${context} can not be converted to 'EcdhKeyDeriveParams' because 'public' is required in 'EcdhKeyDeriveParams'.`,