MCPcopy Create free account
hub / github.com/mscdex/ssh2 / timingSafeEquals

Function timingSafeEquals

lib/protocol/crypto.js:1450–1456  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

1448})();
1449
1450function timingSafeEquals(a, b) {
1451 if (a.length !== b.length) {
1452 timingSafeEqual(a, a);
1453 return false;
1454 }
1455 return timingSafeEqual(a, b);
1456}
1457
1458function createCipher(config) {
1459 if (typeof config !== 'object' || config === null)

Callers 1

decryptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…