You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use timingSafeEqual from Node.js’ Crypto API, expecting it to be available based on #1333, but I get the following error:
Uncaught TypeError: crypto.timingSafeEqual is not a function
Steps to Reproduce
$ deno
>crypto.timingSafeEqual()
Uncaught TypeError: crypto.timingSafeEqual is not a function
at <anonymous>:2:8
Expected behavior
$ deno
>crypto.timingSafeEqual()
Uncaught:
[TypeError: The "buf1" argument must be an instance of ArrayBuffer, Buffer, TypedArray, or DataView.] {
code: 'ERR_INVALID_ARG_TYPE'
}
Does that mean the function is simply not available in deno_std (stable) yet? Anything (blatantly obvious, even?) I’m missing out? Thanks for the help in advance! 💖
Environment
OS: macOS 12.1
deno version: v1.23.3
std version: v0.147.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I tried to use
timingSafeEqual
from Node.js’ Crypto API, expecting it to be available based on #1333, but I get the following error:Steps to Reproduce
Expected behavior
In #2263 the unimplemented methods were stubbed out. However, in the same PR, the implementation for
timingSafeEqual
was simply moved (node/_crypto/timingSafeEqual.ts → node/internal_binding/_timingSafeEqual.ts), implying it should be available.Does that mean the function is simply not available in
deno_std
(stable) yet? Anything (blatantly obvious, even?) I’m missing out? Thanks for the help in advance! 💖Environment
v1.23.3
v0.147.0
The text was updated successfully, but these errors were encountered: