@blamejs/pki 0.5.9 → 0.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +80 -19
  2. package/README.md +1 -1
  3. package/lib/acme.js +5 -5
  4. package/lib/asn1-der.js +1 -1
  5. package/lib/attrcert-sign.js +1 -1
  6. package/lib/cbor-det.js +4 -4
  7. package/lib/cmc-build.js +5 -5
  8. package/lib/cmc-verify.js +14 -11
  9. package/lib/cms-decrypt.js +2 -2
  10. package/lib/cms-sign.js +3 -5
  11. package/lib/cms-verify.js +9 -6
  12. package/lib/constants.js +1 -1
  13. package/lib/crl-sign.js +1 -1
  14. package/lib/crmf-sign.js +1 -1
  15. package/lib/ct.js +8 -5
  16. package/lib/est.js +20 -14
  17. package/lib/guard-all.js +12 -12
  18. package/lib/guard-bytes.js +568 -82
  19. package/lib/guard-compress.js +2 -2
  20. package/lib/guard-der.js +1 -1
  21. package/lib/guard-identifier.js +694 -6
  22. package/lib/guard-limits.js +2 -2
  23. package/lib/guard-parsed.js +10 -6
  24. package/lib/guard-range.js +1 -1
  25. package/lib/guard-secret.js +1 -1
  26. package/lib/guard-text.js +1 -1
  27. package/lib/guard-time.js +65 -4
  28. package/lib/hpke.js +1 -1
  29. package/lib/http-digest.js +1 -1
  30. package/lib/inspect.js +8 -3
  31. package/lib/jose.js +1 -1
  32. package/lib/key.js +48 -6
  33. package/lib/lint.js +15 -8
  34. package/lib/ocsp-verify.js +10 -4
  35. package/lib/ocsp.js +35 -6
  36. package/lib/oid.js +1 -1
  37. package/lib/path-validate.js +99 -22
  38. package/lib/schema-c509.js +5 -5
  39. package/lib/schema-cmp.js +1 -1
  40. package/lib/schema-crl.js +1 -1
  41. package/lib/schema-engine.js +2 -2
  42. package/lib/schema-pkix.js +1 -1
  43. package/lib/sigstore.js +6 -2
  44. package/lib/smime.js +1 -1
  45. package/lib/trust.js +2 -2
  46. package/lib/tsp-sign.js +2 -2
  47. package/lib/validator-attcert.js +3 -3
  48. package/lib/validator-cose.js +3 -3
  49. package/lib/webauthn-mds.js +17 -17
  50. package/lib/webauthn.js +12 -12
  51. package/lib/webcrypto.js +16 -7
  52. package/lib/x509-sign.js +1 -1
  53. package/package.json +4 -2
  54. package/sbom.cdx.json +6 -6
@@ -22,7 +22,7 @@
22
22
  // unboundedly many encodings, and a digest over the compressed object would
23
23
  // stop identifying what it decompresses to.
24
24
  //
25
- // Both defences are applied here, once, for every algorithm, so a new consumer
25
+ // Both defenses are applied here, once, for every algorithm, so a new consumer
26
26
  // cannot pick up one and miss the other. Verified uniform across zlib, brotli
27
27
  // and zstd: each reports consumed input as `engine.bytesWritten` under
28
28
  // `info: true`, each raises ERR_BUFFER_TOO_LARGE on a cap breach, and each
@@ -125,7 +125,7 @@ function bounded(algorithm, stream, cap, E, codes, label) {
125
125
  throw new TypeError("guard.compress.bounded: stream must be a Buffer (route the input through guard.bytes.view first)");
126
126
  }
127
127
  // The ceiling is an authoring input: an undefined / NaN / fractional / negative
128
- // cap would silently disable the bomb defence. It must also be at least 1 --
128
+ // cap would silently disable the bomb defense. It must also be at least 1 --
129
129
  // node rejects maxOutputLength 0 with a different fault than a cap breach, so a
130
130
  // zero cap would surface as a malformed-stream verdict instead of a config error.
131
131
  if (!Number.isInteger(cap) || cap < 1) {
package/lib/guard-der.js CHANGED
@@ -26,7 +26,7 @@
26
26
  // Every entry point takes the CALLER's error factory and code, so a c509 splice reports in
27
27
  // the c509 domain and a certificate builder in the x509 domain.
28
28
  // asn1-der composes this guard family, so requiring the codec at module scope would read its
29
- // exports mid-initialisation and see an empty object. The require and the table it builds are
29
+ // exports mid-initialization and see an empty object. The require and the table it builds are
30
30
  // therefore both deferred to first use -- the documented circular-load exception to top-of-file
31
31
  // requires. Guards sit BELOW the codec in the dependency order; this is the one place that
32
32
  // order is inverted, and it is inverted lazily.