node/lib/internal/crypto
Joyee Cheung 78c226281c crypto: implement crypto.hash()
This patch introduces a helper crypto.hash() that computes
a digest from the input at one shot. This can be 1.2-1.6x faster
than the object-based createHash() for smaller inputs (<= 5MB)
that are readily available (not streamed) and incur less memory
overhead since no intermediate objects will be created.

PR-URL: https://github.com/nodejs/node/pull/51044
Refs: https://github.com/nodejs/performance/issues/136
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
2024-02-29 12:54:51 +01:00
..
aes.js
certificate.js
cfrg.js
cipher.js
diffiehellman.js
ec.js
hash.js crypto: implement crypto.hash() 2024-02-29 12:54:51 +01:00
hashnames.js
hkdf.js errors: improve hideStackFrames 2023-11-14 09:18:05 +01:00
keygen.js
keys.js crypto: update CryptoKey symbol properties 2024-01-02 15:05:22 -03:00
mac.js
pbkdf2.js
random.js
rsa.js
scrypt.js
sig.js
util.js crypto: use EVP_MD_fetch and cache EVP_MD for hashes 2024-02-15 12:00:56 +01:00
webcrypto.js
webidl.js stream: treat compression web stream format per its WebIDL definition 2023-11-23 10:15:41 +01:00
x509.js