Lines Matching defs:const
3 const common = require('../common');
4 const fixtures = require('../common/fixtures');
9 const assert = require('assert');
10 const crypto = require('crypto');
11 const { subtle } = crypto.webcrypto;
13 const sizes = [1024, 2048, 4096];
15 const hashes = [
22 const keyData = {
303 const key = await subtle.importKey(
320 const spki = await subtle.exportKey('spki', key);
337 const key = await subtle.importKey(
354 const pkcs8 = await subtle.exportKey('pkcs8', key);
381 const jwk = keyData[size].jwk;
383 const [
420 const [
458 const invalidUse = name === 'RSA-OAEP' ? 'sig' : 'enc';
519 const testVectors = [
538 const variations = [];
554 const ecPublic = crypto.createPublicKey(
556 const ecPrivate = crypto.createPrivateKey(
559 for (const [name, [publicUsage, privateUsage]] of Object.entries({