Lines Matching defs:const
3 const common = require('../common');
13 const assert = require('assert');
14 const { subtle } = require('crypto').webcrypto;
20 const kDerivedKeyTypes = [
35 const kPasswords = {
43 const kSalts = {
49 const kDerivations = {
365 const promises = [];
367 const baseKeys = {};
368 const noBits = {};
369 const noKey = {};
419 const algorithm = {
426 const bits = await subtle.deriveBits(algorithm, baseKeys[size], 256);
440 const algorithm = {
476 const salt = Buffer.from(kSalts[saltSize], 'hex');
477 const algorithm = { name: 'PBKDF2', salt, iterations };
508 const algorithm = {
530 const algorithm = {
537 const key = await subtle.deriveKey(
544 const bits = await subtle.exportKey('raw', key);
560 const salt = Buffer.from(kSalts[saltSize], 'hex');
561 const algorithm = { name: 'PBKDF2', salt, iterations };
603 const algorithm = {
624 const algorithm = {
638 const {
645 const variations = [];
652 const args = [baseKeys, size, saltSize, hash, iterations | 0];
665 const keyArgs = getDeriveKeyInfo(...keyType);