Repository navigation
Conversation
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Collaborator
|
Review requested:
|
aduh95
approved these changes
Jun 25, 2026
Add typings for the
internalBinding('crypto')surface used by the JS crypto, TLS, and WebCrypto implementation, and wire the binding intoInternalBindingMap.The declaration models the JS-consumed native surface, including mode-dependent
CryptoJobbehavior, WebCrypto promise jobs,CryptoKey/KeyObjectslot tuples, key generation result shapes, sign/verify/MAC result types, cipher jobs, FIPS/root-certificate helpers,secureHeapUsed(), andtimingSafeEqual().This also adds JSDoc types for the internal WebCrypto job-promise helpers so Promise payloads such as generated
CryptoKeyvalues are preserved throughjobPromise()andjobPromiseThen().