Lines Matching refs:crypto
4 common.skip('missing crypto');
7 const crypto = require('crypto');
11 crypto.timingSafeEqual(Buffer.from('foo'), Buffer.from('foo')),
17 crypto.timingSafeEqual(Buffer.from('foo'), Buffer.from('bar')),
23 const buf = crypto.randomBytes(16).buffer;
30 assert.strictEqual(crypto.timingSafeEqual(left, right), true);
47 assert.strictEqual(crypto.timingSafeEqual(a, b), timingSafeEqual);
71 () => crypto.timingSafeEqual(Buffer.from([1, 2, 3]), Buffer.from([1, 2])),
80 () => crypto.timingSafeEqual('not a buffer', Buffer.from([1, 2])),
88 () => crypto.timingSafeEqual(Buffer.from([1, 2]), 'not a buffer'),