We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
crypto.timingSafeEqual
1 parent 01c38e8 commit 9205adeCopy full SHA for 9205ade
src/verify/index.ts
@@ -28,5 +28,8 @@ export function verify(
28
return false;
29
}
30
31
+ // constant time comparison to prevent timing attachs
32
+ // https://stackoverflow.com/a/31096242/206879
33
+ // https://en.wikipedia.org/wiki/Timing_attack
34
return timingSafeEqual(signatureBuffer, verificationBuffer);
35
0 commit comments