Lines Matching refs:digest
26 () => crypto.createHmac('sha256', 'key').digest({
59 const actual = hmac.digest('hex');
273 .digest('hex');
410 crypto.createHmac('sha256', 'w00t').digest('ucs2'),
411 crypto.createHmac('sha256', 'w00t').digest().toString('ucs2'));
413 // Check initialized -> uninitialized state transition after calling digest().
420 assert.deepStrictEqual(h.digest('buffer'), Buffer.from(expected, 'latin1'));
421 assert.deepStrictEqual(h.digest('buffer'), Buffer.from(''));
425 assert.strictEqual(h.digest('latin1'), expected);
426 assert.strictEqual(h.digest('latin1'), '');
430 // Check initialized -> uninitialized state transition after calling digest().
438 assert.deepStrictEqual(h.digest('buffer'), Buffer.from(expected, 'latin1'));
439 assert.deepStrictEqual(h.digest('buffer'), Buffer.from(''));
443 assert.strictEqual(h.digest('latin1'), expected);
444 assert.strictEqual(h.digest('latin1'), '');
451 /Invalid digest/);
458 crypto.createHmac('sha256', buf).update('foo').digest(),
459 crypto.createHmac('sha256', keyObject).update('foo').digest(),