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> |
||
|---|---|---|
| .. | ||
| aes.js | ||
| certificate.js | ||
| cfrg.js | ||
| cipher.js | ||
| diffiehellman.js | ||
| ec.js | ||
| hash.js | ||
| hashnames.js | ||
| hkdf.js | ||
| keygen.js | ||
| keys.js | ||
| mac.js | ||
| pbkdf2.js | ||
| random.js | ||
| rsa.js | ||
| scrypt.js | ||
| sig.js | ||
| util.js | ||
| webcrypto.js | ||
| webidl.js | ||
| x509.js | ||