I believe the old WebCrypto editor is working on other things, but a synchronous, worker-only interface sounds totally plausible. Create a WICG repo for it?
-
-
Also, "and slow" is contextual enough to be meaningless in the general API design sense. Do I assume rAF-speed EBC operations? With how many cores? Are HSMs consulted?
-
Yes HSMs should absolutely be asynchronous. They also have no business in the operations we're talking about.
End of conversation
New conversation -
-
-
Which is why I mentioned symmetric vs asymmetric operations. Computing a hash is not a responsiveness risk. We're talking operations where we look at avoiding malloc because it's on the radar at this scale.
-
… the TAG should probably give some guidance about when a CPU-bound operation takes long enough to make it promise-based. e.g. Hashes and AES handle 1MB in about 1ms, which is probably fine to block the main thread, but we also just added img.decode() because images take longer.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.