Lines Matching refs:crypto
7 const crypto = require('crypto'); constant
10 const Hmac = crypto.Hmac;
11 const instance = crypto.Hmac('sha256', 'Node');
17 () => crypto.createHmac(null),
26 () => crypto.createHmac('sha256', 'key').digest({
35 () => crypto.createHmac('sha1', null),
54 ...(typeof key === 'string' ? [] : [crypto.createSecretKey]),
58 const hmac = crypto.createHmac(algo, keyWrapper(key));
270 const str = crypto.createHmac(hash, rfc4231[i].key);
273 let actual = crypto.createHmac(hash, rfc4231[i].key)
412 crypto.createHmac('sha256', 'w00t').digest('ucs2'),
413 crypto.createHmac('sha256', 'w00t').digest().toString('ucs2'));
421 const h = crypto.createHmac('sha1', 'key').update('data');
426 const h = crypto.createHmac('sha1', 'key').update('data');
439 const h = crypto.createHmac('sha1', 'key');
444 const h = crypto.createHmac('sha1', 'key');
452 () => crypto.createHmac('sha7', 'key'),