Skip to content

Blind code comparison to timing attacks#48

Open
rcoh wants to merge 1 commit intoguyht:masterfrom
rcoh:master
Open

Blind code comparison to timing attacks#48
rcoh wants to merge 1 commit intoguyht:masterfrom
rcoh:master

Conversation

@rcoh
Copy link
Copy Markdown

@rcoh rcoh commented Jan 8, 2018

@rcoh
Copy link
Copy Markdown
Author

rcoh commented Jan 9, 2018

Build failure is unrelated to code

@Uzlopak
Copy link
Copy Markdown

Uzlopak commented Nov 22, 2021

Why not

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants