Lines Matching defs:const
5 const common = require('../common');
9 const assert = require('assert');
11 const {
15 const { inspect } = require('util');
43 for (const type of [undefined, null, 0]) {
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', {}]) {
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, {}, []]) {
284 for (const modulusLength of [512.1, 1.3, 1.1, 5000.9, 100.5]) {
298 for (const modulusLength of [-1, -9, 4294967297]) {
308 for (const publicExponent of ['a', true, {}, []]) {
322 for (const publicExponent of [3.5, 1.1, 50.5, 510.5]) {
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, {}, []]) {
375 for (const modulusLength of [512.1, 1.3, 1.1, 5000.9, 100.5]) {
385 for (const modulusLength of [-1, -9, 4294967297]) {
395 for (const divisorLength of ['a', true, {}, []]) {
409 for (const divisorLength of [4096.1, 5.1, 6.9, 9.5]) {
424 for (const divisorLength of [-1, -6, -9, 2147483648]) {
454 for (const namedCurve of [true, {}, [], 123]) {
573 const allOpts = {
579 const incompatible = [
585 for (const [opt1, opt2] of incompatible) {
603 for (const type of ['foo', 'pkcs8', 'sec1']) {
619 for (const hashValue of [123, true, {}, []]) {
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, {}, []]) {