crypto: make timingSafeEqual faster for Uint8Array#52341
crypto: make timingSafeEqual faster for Uint8Array#52341nodejs-github-bot merged 1 commit intonodejs:mainfrom
Conversation
|
Review requested:
|
anonrig
left a comment
There was a problem hiding this comment.
I love this. Welcome to the "let's add fast api to every method" club :-)
Add a fast API that V8 can use if the user supplies Uint8Arrays (including Buffers) to timingSafeEqual.
854410c to
4efa28f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
mcollina
left a comment
There was a problem hiding this comment.
lgtm
Note that the benchmark CI is going to have less reproducible results until the benchmarking script is updated to set che CPU. ref nodejs/build#3657 (comment)
|
Landed in 08609b5 |
|
|
No this seems to have made |
Add a fast API that V8 can use if the user supplies Uint8Arrays (including Buffers) to timingSafeEqual. PR-URL: #52341 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Daniel Lemire <daniel@lemire.me> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Add a fast API that V8 can use if the user supplies Uint8Arrays (including Buffers) to timingSafeEqual. PR-URL: #52341 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Daniel Lemire <daniel@lemire.me> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Add a fast API that V8 can use if the user supplies
Uint8Arrays (includingBuffers) totimingSafeEqual.Benchmark CI:
Local benchmark:
V8 has rudimentary support for fast APIs that consume
TypedArrays only, which is why this is limited toUint8Arrayfor now.