double-hmac
Compare two Buffers using Double HMAC to protect against timing attacks
Install
npm install double-hmac
Usage
Note that this module only accepts Buffer
s.
const assert = const compare = const a = Bufferconst b = Bufferconst c = Buffer
API
doubleHmac(a, b, cb)
a
Type: Buffer
b
Type: Buffer
cb
Type: Function
Standard Node.js callback with arguments (err, equal)
, equal
being Boolean
Security Notes
TODO