notp icon indicating copy to clipboard operation
notp copied to clipboard

Blind code comparison to timing attacks

Open rcoh opened this issue 8 years ago • 2 comments

https://codahale.com/a-lesson-in-timing-attacks/

rcoh avatar Jan 08 '18 23:01 rcoh

Build failure is unrelated to code

rcoh avatar Jan 09 '18 02:01 rcoh

Why not

if (crypto.timingSafeEqual(Buffer.from(this.generate(key, opt)), Buffer.from(token))) {

Uzlopak avatar Nov 22 '21 17:11 Uzlopak