{"version":3,"sources":["webpack:///./node_modules/buffer-equal-constant-time/index.js"],"names":["Buffer","SlowBuffer","bufferEq","a","b","isBuffer","length","c","i","module","exports","install","prototype","equal","that","this","origBufEqual","origSlowBufEqual","restore"],"mappings":"2FAEA,IAAIA,EAAS,EAAQ,IAAUA,OAC3BC,EAAa,EAAQ,IAAUA,WAInC,SAASC,EAASC,EAAGC,GAGnB,IAAKJ,EAAOK,SAASF,KAAOH,EAAOK,SAASD,GAC1C,OAAO,EAMT,GAAID,EAAEG,SAAWF,EAAEE,OACjB,OAAO,EAIT,IADA,IAAIC,EAAI,EACCC,EAAI,EAAGA,EAAIL,EAAEG,OAAQE,IAE5BD,GAAKJ,EAAEK,GAAKJ,EAAEI,GAEhB,OAAa,IAAND,EArBTE,EAAOC,QAAUR,EAwBjBA,EAASS,QAAU,WACjBX,EAAOY,UAAUC,MAAQZ,EAAWW,UAAUC,MAAQ,SAAeC,GACnE,OAAOZ,EAASa,KAAMD,KAI1B,IAAIE,EAAehB,EAAOY,UAAUC,MAChCI,EAAmBhB,EAAWW,UAAUC,MAC5CX,EAASgB,QAAU,WACjBlB,EAAOY,UAAUC,MAAQG,EACzBf,EAAWW,UAAUC,MAAQI","file":"yarn.buffer-equal-constant-time.becc34fe6fa559c58c21.js","sourcesContent":["/*jshint node:true */\n'use strict';\nvar Buffer = require('buffer').Buffer; // browserify\nvar SlowBuffer = require('buffer').SlowBuffer;\n\nmodule.exports = bufferEq;\n\nfunction bufferEq(a, b) {\n\n // shortcutting on type is necessary for correctness\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n return false;\n }\n\n // buffer sizes should be well-known information, so despite this\n // shortcutting, it doesn't leak any information about the *contents* of the\n // buffers.\n if (a.length !== b.length) {\n return false;\n }\n\n var c = 0;\n for (var i = 0; i < a.length; i++) {\n /*jshint bitwise:false */\n c |= a[i] ^ b[i]; // XOR\n }\n return c === 0;\n}\n\nbufferEq.install = function() {\n Buffer.prototype.equal = SlowBuffer.prototype.equal = function equal(that) {\n return bufferEq(this, that);\n };\n};\n\nvar origBufEqual = Buffer.prototype.equal;\nvar origSlowBufEqual = SlowBuffer.prototype.equal;\nbufferEq.restore = function() {\n Buffer.prototype.equal = origBufEqual;\n SlowBuffer.prototype.equal = origSlowBufEqual;\n};\n"],"sourceRoot":""}