Lines Matching refs:crypto
4 common.skip('missing crypto');
7 const crypto = require('crypto');
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),
52 ...(typeof key === 'string' ? [] : [crypto.createSecretKey]),
56 const hmac = crypto.createHmac(algo, keyWrapper(key));
268 const str = crypto.createHmac(hash, rfc4231[i].key);
271 let actual = crypto.createHmac(hash, rfc4231[i].key)
410 crypto.createHmac('sha256', 'w00t').digest('ucs2'),
411 crypto.createHmac('sha256', 'w00t').digest().toString('ucs2'));
419 const h = crypto.createHmac('sha1', 'key').update('data');
424 const h = crypto.createHmac('sha1', 'key').update('data');
437 const h = crypto.createHmac('sha1', 'key');
442 const h = crypto.createHmac('sha1', 'key');
450 () => crypto.createHmac('sha7', 'key'),
456 const keyObject = crypto.createSecretKey(Buffer.alloc(0));
458 crypto.createHmac('sha256', buf).update('foo').digest(),
459 crypto.createHmac('sha256', keyObject).update('foo').digest(),