@blamejs/pki 0.5.38 → 0.6.0
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.
- package/CHANGELOG.md +21 -1
- package/README.md +8 -7
- package/lib/acme.js +23 -23
- package/lib/cmc-build.js +35 -6
- package/lib/cmc-verify.js +5 -3
- package/lib/cmp-build.js +54 -32
- package/lib/cmp-session.js +1 -1
- package/lib/ct.js +9 -9
- package/lib/est.js +11 -11
- package/lib/hpke.js +4 -4
- package/lib/http-transport.js +1 -1
- package/lib/lint.js +3 -3
- package/lib/ocsp-request-verify.js +28 -0
- package/lib/ocsp.js +156 -0
- package/lib/path-validate.js +6 -1
- package/lib/schema-c509.js +2 -2
- package/lib/schema-cmc.js +3 -3
- package/lib/sigstore.js +3 -3
- package/lib/webauthn.js +3 -3
- package/package.json +1 -1
- package/sbom.cdx.json +6 -6
package/lib/schema-cmc.js
CHANGED
|
@@ -667,7 +667,7 @@ function _finishBody(body, where) {
|
|
|
667
667
|
* @primitive pki.schema.cmc.parsePkiData
|
|
668
668
|
* @signature pki.schema.cmc.parsePkiData(der) -> parsed
|
|
669
669
|
* @since 0.4.16
|
|
670
|
-
* @status
|
|
670
|
+
* @status stable
|
|
671
671
|
* @spec RFC 5272 sec. 3.2.1
|
|
672
672
|
* @related pki.schema.cmc.parse, pki.schema.cmc.parsePkiResponse
|
|
673
673
|
*
|
|
@@ -695,7 +695,7 @@ function parsePkiData(input) {
|
|
|
695
695
|
* @primitive pki.schema.cmc.parsePkiResponse
|
|
696
696
|
* @signature pki.schema.cmc.parsePkiResponse(der) -> parsed
|
|
697
697
|
* @since 0.4.16
|
|
698
|
-
* @status
|
|
698
|
+
* @status stable
|
|
699
699
|
* @spec RFC 5272 sec. 4.2.1
|
|
700
700
|
* @related pki.schema.cmc.parse, pki.schema.cmc.parsePkiData
|
|
701
701
|
*
|
|
@@ -721,7 +721,7 @@ function parsePkiResponse(input) {
|
|
|
721
721
|
* @primitive pki.schema.cmc.parse
|
|
722
722
|
* @signature pki.schema.cmc.parse(input) -> parsed
|
|
723
723
|
* @since 0.4.16
|
|
724
|
-
* @status
|
|
724
|
+
* @status stable
|
|
725
725
|
* @spec RFC 5272, RFC 6402
|
|
726
726
|
* @defends cmc-status-confusion (CWE-20)
|
|
727
727
|
* @related pki.schema.cmc.parsePkiData, pki.schema.cmc.parsePkiResponse, pki.cms.verify
|
package/lib/sigstore.js
CHANGED
|
@@ -104,7 +104,7 @@ function _jsonParse(input, code, label) {
|
|
|
104
104
|
* @primitive pki.sigstore.pae
|
|
105
105
|
* @signature pki.sigstore.pae(payloadType, payloadBytes) -> Buffer
|
|
106
106
|
* @since 0.2.3
|
|
107
|
-
* @status
|
|
107
|
+
* @status stable
|
|
108
108
|
* @spec DSSE
|
|
109
109
|
* @related pki.sigstore.verifyBundle
|
|
110
110
|
*
|
|
@@ -150,7 +150,7 @@ function _b64(s, label) {
|
|
|
150
150
|
* @primitive pki.sigstore.parseBundle
|
|
151
151
|
* @signature pki.sigstore.parseBundle(input) -> bundle
|
|
152
152
|
* @since 0.2.3
|
|
153
|
-
* @status
|
|
153
|
+
* @status stable
|
|
154
154
|
* @spec Sigstore bundle v0.3
|
|
155
155
|
* @related pki.sigstore.verifyBundle
|
|
156
156
|
*
|
|
@@ -637,7 +637,7 @@ function _statement(payload, payloadType, expectedPredicate) {
|
|
|
637
637
|
* @primitive pki.sigstore.verifyBundle
|
|
638
638
|
* @signature pki.sigstore.verifyBundle(bundle, opts) -> Promise<result>
|
|
639
639
|
* @since 0.2.3
|
|
640
|
-
* @status
|
|
640
|
+
* @status stable
|
|
641
641
|
* @spec DSSE, Sigstore bundle v0.3, RFC 9162, SLSA provenance v1
|
|
642
642
|
* @related pki.sigstore.parseBundle, pki.sigstore.pae
|
|
643
643
|
*
|
package/lib/webauthn.js
CHANGED
|
@@ -1939,7 +1939,7 @@ var CLIENT_DATA_TYPE = Object.assign(Object.create(null), { "webauthn.create": 1
|
|
|
1939
1939
|
* @primitive pki.webauthn.parseClientData
|
|
1940
1940
|
* @signature pki.webauthn.parseClientData(bytes, opts?) -> { type, challenge, origin, crossOrigin, topOrigin, checked }
|
|
1941
1941
|
* @since 0.5.0
|
|
1942
|
-
* @status
|
|
1942
|
+
* @status stable
|
|
1943
1943
|
* @spec W3C WebAuthn Level 3 sec. 5.8.1 / 7.1 / 7.2
|
|
1944
1944
|
* @defends webauthn-ceremony-confusion (CWE-345)
|
|
1945
1945
|
* @related pki.webauthn.verify, pki.webauthn.verifyAssertion
|
|
@@ -2126,7 +2126,7 @@ var _CLIENT_DATA_OPTS = Object.assign(Object.create(null), {
|
|
|
2126
2126
|
* @primitive pki.webauthn.parseAuthenticatorData
|
|
2127
2127
|
* @signature pki.webauthn.parseAuthenticatorData(bytes) -> { rpIdHash, flags, signCount, aaguid, credentialId, credentialPublicKey, credentialPublicKeyBytes, extensions }
|
|
2128
2128
|
* @since 0.5.0
|
|
2129
|
-
* @status
|
|
2129
|
+
* @status stable
|
|
2130
2130
|
* @spec W3C WebAuthn Level 3 sec. 6.1
|
|
2131
2131
|
* @related pki.webauthn.verifyAssertion, pki.webauthn.parseAttestationObject
|
|
2132
2132
|
*
|
|
@@ -2164,7 +2164,7 @@ var _ASSERT_OPTS = Object.assign(Object.create(null), {
|
|
|
2164
2164
|
* @primitive pki.webauthn.verifyAssertion
|
|
2165
2165
|
* @signature pki.webauthn.verifyAssertion(input) -> Promise<{ signatureVerified, signCount, signCountChecked, flags, rpIdHash, extensions, bindingChecked, clientData }>
|
|
2166
2166
|
* @since 0.5.0
|
|
2167
|
-
* @status
|
|
2167
|
+
* @status stable
|
|
2168
2168
|
* @spec W3C WebAuthn Level 3 sec. 7.2
|
|
2169
2169
|
* @defends webauthn-assertion-forgery (CWE-347)
|
|
2170
2170
|
* @related pki.webauthn.parseAuthenticatorData, pki.webauthn.verify
|
package/package.json
CHANGED
package/sbom.cdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
|
|
3
3
|
"bomFormat": "CycloneDX",
|
|
4
4
|
"specVersion": "1.5",
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
5
|
+
"serialNumber": "urn:uuid:9aa382b4-23a6-46b3-b0c6-809ac7fb8e71",
|
|
6
6
|
"version": 1,
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-08-
|
|
8
|
+
"timestamp": "2026-08-30T09:44:19.627Z",
|
|
9
9
|
"lifecycles": [
|
|
10
10
|
{
|
|
11
11
|
"phase": "build"
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"component": {
|
|
22
|
-
"bom-ref": "@blamejs/pki@0.
|
|
22
|
+
"bom-ref": "@blamejs/pki@0.6.0",
|
|
23
23
|
"type": "application",
|
|
24
24
|
"name": "pki",
|
|
25
|
-
"version": "0.
|
|
25
|
+
"version": "0.6.0",
|
|
26
26
|
"scope": "required",
|
|
27
27
|
"author": "blamejs contributors",
|
|
28
28
|
"description": "Pure-JavaScript PKI toolkit that owns its stack — X.509, ASN.1/DER, CMS, PQC-first.",
|
|
29
|
-
"purl": "pkg:npm/%40blamejs/pki@0.
|
|
29
|
+
"purl": "pkg:npm/%40blamejs/pki@0.6.0",
|
|
30
30
|
"properties": [],
|
|
31
31
|
"externalReferences": [
|
|
32
32
|
{
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"components": [],
|
|
55
55
|
"dependencies": [
|
|
56
56
|
{
|
|
57
|
-
"ref": "@blamejs/pki@0.
|
|
57
|
+
"ref": "@blamejs/pki@0.6.0",
|
|
58
58
|
"dependsOn": []
|
|
59
59
|
}
|
|
60
60
|
]
|