Lines Matching defs:const
3 const common = require('../common');
8 const assert = require('assert');
9 const { subtle } = require('crypto').webcrypto;
15 const kDerivedKeyTypes = [
30 const kDerivedKeys = {
37 const kSalts = {
42 const kInfos = {
47 const kDerivations = {
159 const promises = [];
161 const baseKeys = {};
162 const noBits = {};
163 const noKey = {};
167 const keyData = Buffer.from(kDerivedKeys[size], 'hex');
228 const algorithm = {
235 const bits = await subtle.deriveBits(
252 const algorithm = {
288 const salt = Buffer.from(kSalts[saltSize], 'hex');
289 const info = Buffer.from(kInfos[infoSize], 'hex');
290 const algorithm = { name: 'HKDF', salt, info };
321 const algorithm = {
340 const algorithm = {
358 const algorithm = {
375 const algorithm = {
396 const algorithm = {
403 const key = await subtle.deriveKey(
410 const bits = await subtle.exportKey('raw', key);
425 const salt = Buffer.from(kSalts[saltSize], 'hex');
426 const info = Buffer.from(kInfos[infoSize], 'hex');
427 const algorithm = { name: 'HKDF', salt, info };
469 const algorithm = {
490 const algorithm = {
504 const {
511 const variations = [];
518 const args = [baseKeys, size, saltSize, hash, infoSize];
539 const keyArgs = getDeriveKeyInfo(...keyType);