Lines Matching defs:const
4 const common = require('../common');
9 const assert = require('assert');
10 const { types: { isCryptoKey } } = require('util');
11 const {
17 const { bigIntArrayToUnsignedBigInt } = require('internal/crypto/util');
19 const allUsages = [
29 const vectors = {
172 const tests = [
230 const invalidUsages = [];
235 for (const invalidUsage of invalidUsages) {
247 const tests = Object.keys(vectors).map(test);
264 const { publicKey, privateKey } = await subtle.generateKey({
379 const kTests = [
406 const tests = kTests.map((args) => test(...args));
423 const { publicKey, privateKey } = await subtle.generateKey({
460 const kTests = [
487 const tests = kTests.map((args) => test(...args));
497 const key = await subtle.generateKey({
527 const kTests = [
538 const tests = Promise.all(kTests.map((args) => test(...args)));
546 const key = await subtle.generateKey({
581 const kTests = [
590 const tests = Promise.all(kTests.map((args) => test(...args)));
599 const buffer = Buffer.from('Hello World');
600 const keyObject = createSecretKey(buffer);
616 const { publicKey, privateKey } = await subtle.generateKey({
637 const kTests = [
660 const tests = kTests.map((args) => test(...args));