Lines Matching refs:of
43 for (const type of [undefined, null, 0]) {
47 message: 'The "type" argument must be of type string.' +
64 message: 'The "options" argument must be of type object. ' +
73 message: 'The "options" argument must be of type object. ' +
80 for (const enc of [0, 'a', true]) {
97 for (const type of [undefined, null, 0, true, {}]) {
117 for (const format of [undefined, null, 0, false, 'a', {}]) {
137 for (const enc of [0, 'a', true]) {
154 for (const type of [undefined, null, 0, true, {}]) {
174 for (const format of [undefined, null, 0, false, 'a', {}]) {
193 // Cipher of invalid type.
194 for (const cipher of [0, true, {}]) {
234 for (const passphrase of [undefined, null, 5, false, true]) {
256 for (const cb of [undefined, null, 0, {}]) {
271 for (const modulusLength of [undefined, null, 'a', true, {}, []]) {
278 'The "options.modulusLength" property must be of type number.' +
284 for (const modulusLength of [512.1, 1.3, 1.1, 5000.9, 100.5]) {
291 'The value of "options.modulusLength" is out of range. ' +
297 // Test invalid modulus lengths. (out of range)
298 for (const modulusLength of [-1, -9, 4294967297]) {
308 for (const publicExponent of ['a', true, {}, []]) {
316 'The "options.publicExponent" property must be of type number.' +
322 for (const publicExponent of [3.5, 1.1, 50.5, 510.5]) {
330 'The value of "options.publicExponent" is out of range. ' +
336 // Test invalid exponents. (out of range)
337 for (const publicExponent of [-5, -3, 4294967297]) {
348 for (const publicExponent of [1, 1 + 0x10001]) {
362 for (const modulusLength of [undefined, null, 'a', true, {}, []]) {
369 'The "options.modulusLength" property must be of type number.' +
375 for (const modulusLength of [512.1, 1.3, 1.1, 5000.9, 100.5]) {
384 // Test invalid modulus lengths. (out of range)
385 for (const modulusLength of [-1, -9, 4294967297]) {
395 for (const divisorLength of ['a', true, {}, []]) {
403 'The "options.divisorLength" property must be of type number.' +
409 for (const divisorLength of [4096.1, 5.1, 6.9, 9.5]) {
417 'The value of "options.divisorLength" is out of range. ' +
423 // Test invalid divisor lengths. (out of range)
424 for (const divisorLength of [-1, -6, -9, 2147483648]) {
432 'The value of "options.divisorLength" is out of range. ' +
454 for (const namedCurve of [true, {}, [], 123]) {
465 'The "options.namedCurve" property must be of type string.' +
500 message: 'The "options" argument must be of type object. Received undefined'
508 message: 'At least one of the group, prime, or primeLength options is ' +
529 message: 'The value of "options.primeLength" is out of range. ' +
541 message: 'The value of "options.primeLength" is out of range. ' +
554 message: 'The value of "options.generator" is out of range. ' +
567 message: 'The value of "options.generator" is out of range. ' +
585 for (const [opt1, opt2] of incompatible) {
603 for (const type of ['foo', 'pkcs8', 'sec1']) {
619 for (const hashValue of [123, true, {}, []]) {
629 'The "options.hashAlgorithm" property must be of type string.' +
645 message: 'The value of "options.saltLength" is out of range. ' +
660 message: 'The value of "options.saltLength" is out of range. ' +
666 for (const type of ['foo', 'spki']) {
682 for (const type of ['dsa', 'ec']) {
710 for (const type of ['rsa', 'dsa']) {
725 for (const type of ['pkcs1', 'sec1']) {
763 for (const mgf1HashAlgorithm of [null, 0, false, {}, []]) {
777 'The "options.mgf1HashAlgorithm" property must be of type string.' +