bitcore-lib icon indicating copy to clipboard operation
bitcore-lib copied to clipboard

Potential Error in Hash.hmac

Open micahriggan opened this issue 7 years ago • 0 comments

https://github.com/bitpay/bitcore-lib/blob/86583608814dfc513e675d7b853806caf9bd95e7/lib/crypto/hash.js#L56

Buffer < number is probably not the intended logic for this line. Perhaps key.length < blocksize

micahriggan avatar Oct 26 '18 00:10 micahriggan