-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node: add crypto.Sign #17843
Comments
I tried implementing it and encountered difficult point. I tried using Web Crypto API for replacing node crypto, but Web Crypto API has promise based API only while node crypto.Sign has synchronous API. For now I found SharedArrayBuffer and Atomics but I can't sure it is feasible and right way. So request comments. |
Which Web Crypto APIs do you need to implement crypto.Sign? We have a few synchronous versions of Web Crypto APIs in |
I thought SubtleCrypto.sign and didn't search others. There is a PR trying to embed nodejs API polyfill, but is it okay to use deno_std/crypto? |
std/node already internally uses std/crypto here https://github.com/denoland/deno_std/blob/ec2f37c5cb6199c03b7747c1c8322b757b04966a/node/internal/crypto/hash.ts#L4-L8 |
But it looks like we don't have sync version of crypto.subtle.sign yet... |
We're tracking all missing APIs from |
crypto.Sign
is not implemented now, but is necessary to usenpm:@google-cloud/translate
(npm:google-auth-library
)ref https://github.com/denoland/deno_std/discussions/3002
The text was updated successfully, but these errors were encountered: