@suveren/gateway 0.40.0 → 0.41.1
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/content/guides/6-risks.md +1 -0
- package/dist/control-plane/index.mjs +182 -37
- package/dist/mcp-server/http.mjs +357 -71
- package/dist/ui/assets/{index-C-lA_7Lt.js → index-CO-dj98E.js} +27 -27
- package/dist/ui/index.html +1 -1
- package/node_modules/@hap/core/README.md +3 -3
- package/node_modules/@hap/core/dist/index.d.mts +567 -123
- package/node_modules/@hap/core/dist/index.d.ts +567 -123
- package/node_modules/@hap/core/dist/index.js +869 -23
- package/node_modules/@hap/core/dist/index.mjs +829 -22
- package/node_modules/@hap/core/node_modules/@hpke/core/LICENSE +21 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/README.md +263 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/mod.d.ts +11 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/mod.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/mod.js +6 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/package.json +3 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/aesGcm.d.ts +80 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/aesGcm.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/aesGcm.js +167 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/exportOnly.d.ts +34 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/exportOnly.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/aeads/exportOnly.js +56 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/cipherSuiteNative.d.ts +145 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/cipherSuiteNative.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/cipherSuiteNative.js +326 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/encryptionContext.d.ts +15 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/encryptionContext.js +68 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/exporterContext.d.ts +19 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/exporterContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/exporterContext.js +62 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/aeadParams.d.ts +17 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/aeadParams.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/aeadParams.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.d.ts +13 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encapsulator.d.ts +8 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encapsulator.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encapsulator.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.d.ts +40 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/exporter.d.ts +17 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/exporter.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/exporter.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/keyInfo.d.ts +7 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/keyInfo.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/keyInfo.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/responses.d.ts +10 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/responses.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/interfaces/responses.js +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemNative.d.ts +26 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemNative.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemNative.js +112 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts +24 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.js +214 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts +24 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.js +214 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX25519.d.ts +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX25519.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX25519.js +66 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX448.d.ts +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX448.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/kems/dhkemX448.js +66 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/mutex.d.ts +5 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/mutex.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/mutex.js +28 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/native.d.ts +236 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/native.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/native.js +235 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/recipientContext.d.ts +6 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/recipientContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/recipientContext.js +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/senderContext.d.ts +11 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/senderContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/senderContext.js +45 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.d.ts +2 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.js +6 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/package.json +46 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/mod.d.ts +11 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/mod.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/mod.js +47 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/package.json +3 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/aesGcm.d.ts +80 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/aesGcm.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/aesGcm.js +183 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/exportOnly.d.ts +34 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/exportOnly.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/aeads/exportOnly.js +70 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/cipherSuiteNative.d.ts +145 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/cipherSuiteNative.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/cipherSuiteNative.js +340 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/encryptionContext.d.ts +15 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/encryptionContext.js +82 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/exporterContext.d.ts +19 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/exporterContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/exporterContext.js +78 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/aeadParams.d.ts +17 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/aeadParams.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/aeadParams.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.d.ts +13 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encapsulator.d.ts +8 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encapsulator.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encapsulator.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encryptionContext.d.ts +40 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/encryptionContext.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/exporter.d.ts +17 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/exporter.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/exporter.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/keyInfo.d.ts +7 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/keyInfo.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/keyInfo.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/responses.d.ts +10 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/responses.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/interfaces/responses.js +12 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemNative.d.ts +26 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemNative.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemNative.js +128 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts +24 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.js +228 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts +24 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.js +228 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX25519.d.ts +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX25519.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX25519.js +80 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX448.d.ts +38 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX448.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/kems/dhkemX448.js +80 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/mutex.d.ts +5 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/mutex.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/mutex.js +42 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/native.d.ts +236 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/native.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/native.js +255 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/recipientContext.d.ts +6 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/recipientContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/recipientContext.js +52 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/senderContext.d.ts +11 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/senderContext.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/senderContext.js +59 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/utils/emitNotSupported.d.ts +2 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/utils/emitNotSupported.d.ts.map +1 -0
- package/node_modules/@hap/core/node_modules/@hpke/core/script/src/utils/emitNotSupported.js +19 -0
- package/node_modules/@hap/core/package.json +2 -1
- package/node_modules/@hap/core/src/canonicalize.ts +9 -0
- package/node_modules/@hap/core/src/commitment-modes.ts +21 -9
- package/node_modules/@hap/core/src/errors.ts +24 -8
- package/node_modules/@hap/core/src/gatekeeper.ts +52 -8
- package/node_modules/@hap/core/src/index.ts +5 -1
- package/node_modules/@hap/core/src/issuance.ts +250 -0
- package/node_modules/@hap/core/src/mandate.ts +52 -14
- package/node_modules/@hap/core/src/owner-signature.ts +86 -39
- package/node_modules/@hap/core/src/profile.ts +45 -0
- package/node_modules/@hap/core/src/proposal-content.ts +219 -0
- package/node_modules/@hap/core/src/ticket-projection.ts +167 -0
- package/node_modules/@hap/core/src/ticket.ts +254 -20
- package/node_modules/@hap/core/src/types.ts +33 -5
- package/node_modules/@hap/core/src/verifier-policy.ts +178 -0
- package/node_modules/@hap/core/src/versions.ts +50 -19
- package/node_modules/@hono/node-server/dist/index.cjs +31 -6
- package/node_modules/@hono/node-server/dist/index.mjs +31 -6
- package/node_modules/@hono/node-server/package.json +1 -1
- package/node_modules/@hpke/common/esm/package.json +5 -1
- package/node_modules/@hpke/common/esm/src/curve/montgomery.d.ts +2 -2
- package/node_modules/@hpke/common/esm/src/curve/montgomery.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/curve/montgomery.js +41 -26
- package/node_modules/@hpke/common/esm/src/hash/sha3.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/hash/sha3.js +0 -15
- package/node_modules/@hpke/common/esm/src/kdfs/hkdf.d.ts +2 -1
- package/node_modules/@hpke/common/esm/src/kdfs/hkdf.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/kdfs/hkdf.js +12 -2
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/xCurve.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/xCurve.js +14 -3
- package/node_modules/@hpke/common/esm/src/utils/misc.d.ts +6 -0
- package/node_modules/@hpke/common/esm/src/utils/misc.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/utils/misc.js +43 -10
- package/node_modules/@hpke/common/esm/src/utils/noble.d.ts +1 -1
- package/node_modules/@hpke/common/esm/src/utils/noble.d.ts.map +1 -1
- package/node_modules/@hpke/common/esm/src/utils/noble.js +21 -10
- package/node_modules/@hpke/common/package.json +5 -1
- package/node_modules/@hpke/common/script/src/curve/montgomery.d.ts +2 -2
- package/node_modules/@hpke/common/script/src/curve/montgomery.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/curve/montgomery.js +40 -25
- package/node_modules/@hpke/common/script/src/hash/sha3.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/hash/sha3.js +0 -15
- package/node_modules/@hpke/common/script/src/kdfs/hkdf.d.ts +2 -1
- package/node_modules/@hpke/common/script/src/kdfs/hkdf.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/kdfs/hkdf.js +12 -2
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/xCurve.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/xCurve.js +13 -2
- package/node_modules/@hpke/common/script/src/utils/misc.d.ts +6 -0
- package/node_modules/@hpke/common/script/src/utils/misc.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/utils/misc.js +43 -9
- package/node_modules/@hpke/common/script/src/utils/noble.d.ts +1 -1
- package/node_modules/@hpke/common/script/src/utils/noble.d.ts.map +1 -1
- package/node_modules/@hpke/common/script/src/utils/noble.js +22 -11
- package/node_modules/@hpke/core/README.md +56 -56
- package/node_modules/@hpke/core/esm/package.json +2 -1
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts +3 -21
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -1
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.js +3 -201
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts +3 -21
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts.map +1 -1
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.js +3 -201
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/xCurveNative.d.ts +26 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/xCurveNative.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/xCurveNative.js +216 -0
- package/node_modules/@hpke/core/package.json +6 -2
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts +3 -21
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -1
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.js +4 -202
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts +3 -21
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts.map +1 -1
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.js +4 -202
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/xCurveNative.d.ts +26 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/xCurveNative.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/xCurveNative.js +230 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/zlib.d.ts +752 -0
- package/node_modules/encodeurl/README.md +14 -0
- package/node_modules/encodeurl/index.js +5 -10
- package/node_modules/encodeurl/package.json +10 -6
- package/node_modules/express-rate-limit/dist/index.cjs +7 -3
- package/node_modules/express-rate-limit/dist/index.mjs +7 -3
- package/node_modules/express-rate-limit/package.json +10 -10
- package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +1 -1
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +1 -1
- package/node_modules/hono/dist/cjs/context.js +1 -1
- package/node_modules/hono/dist/cjs/helper/css/common.js +3 -5
- package/node_modules/hono/dist/cjs/hono-base.js +4 -10
- package/node_modules/hono/dist/cjs/hono.js +0 -1
- package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/mount/index.js +4 -4
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +13 -11
- package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +4 -4
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +39 -51
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +15 -5
- package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +2 -1
- package/node_modules/hono/dist/cjs/utils/mount.js +35 -0
- package/node_modules/hono/dist/cjs/utils/url.js +10 -0
- package/node_modules/hono/dist/cjs/validator/validator.js +1 -1
- package/node_modules/hono/dist/context.js +1 -1
- package/node_modules/hono/dist/helper/css/common.js +3 -5
- package/node_modules/hono/dist/hono-base.js +4 -10
- package/node_modules/hono/dist/hono.js +0 -1
- package/node_modules/hono/dist/middleware/basic-auth/index.js +1 -1
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +1 -1
- package/node_modules/hono/dist/middleware/csrf/index.js +2 -2
- package/node_modules/hono/dist/middleware/jwk/jwk.js +2 -2
- package/node_modules/hono/dist/middleware/jwt/jwt.js +2 -2
- package/node_modules/hono/dist/middleware/language/language.js +1 -1
- package/node_modules/hono/dist/middleware/mount/index.js +4 -4
- package/node_modules/hono/dist/router/reg-exp-router/node.js +13 -11
- package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +5 -5
- package/node_modules/hono/dist/router/reg-exp-router/router.js +40 -52
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +15 -5
- package/node_modules/hono/dist/types/middleware/mount/index.d.ts +1 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +3 -3
- package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +1 -1
- package/node_modules/hono/dist/types/utils/mount.d.ts +4 -0
- package/node_modules/hono/dist/types/utils/url.d.ts +1 -0
- package/node_modules/hono/dist/utils/jwt/jwt.js +2 -1
- package/node_modules/hono/dist/utils/mount.js +34 -0
- package/node_modules/hono/dist/utils/url.js +10 -1
- package/node_modules/hono/dist/validator/validator.js +1 -1
- package/node_modules/hono/package.json +1 -1
- package/node_modules/ip-address/README.md +39 -39
- package/node_modules/ip-address/dist/ipv6.js +1 -1
- package/node_modules/ip-address/dist/ipv6.js.map +1 -1
- package/node_modules/ip-address/package.json +1 -1
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +3 -0
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -0
- package/node_modules/jose/dist/types/jwt/verify.d.ts +3 -0
- package/node_modules/jose/dist/types/types.d.ts +8 -0
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +1 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +3 -1
- package/node_modules/jose/dist/webapi/lib/deflate.js +2 -1
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +2 -1
- package/node_modules/jose/package.json +1 -1
- package/node_modules/qs/CHANGELOG.md +29 -22
- package/node_modules/qs/dist/qs.js +14 -14
- package/node_modules/qs/eslint.config.mjs +6 -0
- package/node_modules/qs/lib/stringify.js +1 -1
- package/node_modules/qs/package.json +5 -5
- package/node_modules/qs/test/stringify.js +74 -0
- package/package.json +2 -2
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { HkdfSha256Native, HkdfSha384Native, HkdfSha512Native } from "@hpke/common";
|
|
2
|
+
import { CipherSuiteNative } from "./cipherSuiteNative.js";
|
|
3
|
+
import { DhkemP256HkdfSha256Native, DhkemP384HkdfSha384Native, DhkemP521HkdfSha512Native } from "./kems/dhkemNative.js";
|
|
4
|
+
/**
|
|
5
|
+
* The Hybrid Public Key Encryption (HPKE) ciphersuite,
|
|
6
|
+
* which is implemented using only
|
|
7
|
+
* {@link https://www.w3.org/TR/WebCryptoAPI/ | Web Cryptography API}.
|
|
8
|
+
*
|
|
9
|
+
* This class is the same as
|
|
10
|
+
* {@link https://jsr.io/@hpke/core/doc/~/CipherSuiteNative | @hpke/core#CipherSuiteNative} as follows:
|
|
11
|
+
* which supports only the ciphersuites that can be implemented on the native
|
|
12
|
+
* {@link https://www.w3.org/TR/WebCryptoAPI/ | Web Cryptography API}.
|
|
13
|
+
* Therefore, the following cryptographic algorithms are not supported for now:
|
|
14
|
+
* - `DHKEM(X448, HKDF-SHA512)`
|
|
15
|
+
* - `ChaCha20Poly1305`
|
|
16
|
+
*
|
|
17
|
+
* In addtion, the HKDF functions contained in this `CipherSuiteNative`
|
|
18
|
+
* class can only derive keys of the same length as the `hashSize`.
|
|
19
|
+
*
|
|
20
|
+
* If you want to use the unsupported cryptographic algorithms
|
|
21
|
+
* above or derive keys longer than the `hashSize`,
|
|
22
|
+
* please use {@link https://jsr.io/@hpke/hpke-js/doc/~/CipherSuite | hpke-js#CipherSuite}.
|
|
23
|
+
*
|
|
24
|
+
* This class provides following functions:
|
|
25
|
+
*
|
|
26
|
+
* - Creates encryption contexts both for senders and recipients.
|
|
27
|
+
* - {@link createSenderContext}
|
|
28
|
+
* - {@link createRecipientContext}
|
|
29
|
+
* - Provides single-shot encryption API.
|
|
30
|
+
* - {@link seal}
|
|
31
|
+
* - {@link open}
|
|
32
|
+
*
|
|
33
|
+
* The calling of the constructor of this class is the starting
|
|
34
|
+
* point for HPKE operations for both senders and recipients.
|
|
35
|
+
*
|
|
36
|
+
* @example Use only ciphersuites supported by Web Cryptography API.
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* import {
|
|
40
|
+
* Aes128Gcm,
|
|
41
|
+
* DhkemP256HkdfSha256,
|
|
42
|
+
* HkdfSha256,
|
|
43
|
+
* CipherSuite,
|
|
44
|
+
* } from "@hpke/core";
|
|
45
|
+
*
|
|
46
|
+
* const suite = new CipherSuite({
|
|
47
|
+
* kem: new DhkemP256HkdfSha256(),
|
|
48
|
+
* kdf: new HkdfSha256(),
|
|
49
|
+
* aead: new Aes128Gcm(),
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @example Use DHKEM(X25519, HKDF-SHA256).
|
|
54
|
+
*
|
|
55
|
+
* ```ts
|
|
56
|
+
* import {
|
|
57
|
+
* Aes128Gcm,
|
|
58
|
+
* CipherSuite,
|
|
59
|
+
* DhkemX25519HkdfSha256,
|
|
60
|
+
* HkdfSha256,
|
|
61
|
+
* } from "@hpke/core";
|
|
62
|
+
* const suite = new CipherSuite({
|
|
63
|
+
* kem: new DhkemX25519HkdfSha256(),
|
|
64
|
+
* kdf: new HkdfSha256(),
|
|
65
|
+
* aead: new Aes128Gcm(),
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export declare class CipherSuite extends CipherSuiteNative {
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The DHKEM(P-256, HKDF-SHA256) for HPKE KEM implementing {@link KemInterface}.
|
|
73
|
+
*
|
|
74
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
75
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KemId.DhkemP256HkdfSha256`
|
|
76
|
+
* as follows:
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
*
|
|
80
|
+
* ```ts
|
|
81
|
+
* import {
|
|
82
|
+
* Aes128Gcm,
|
|
83
|
+
* CipherSuite,
|
|
84
|
+
* DhkemP256HkdfSha256,
|
|
85
|
+
* HkdfSha256,
|
|
86
|
+
* } from "@hpke/core";
|
|
87
|
+
*
|
|
88
|
+
* const suite = new CipherSuite({
|
|
89
|
+
* kem: new DhkemP256HkdfSha256(),
|
|
90
|
+
* kdf: new HkdfSha256(),
|
|
91
|
+
* aead: new Aes128Gcm(),
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
export declare class DhkemP256HkdfSha256 extends DhkemP256HkdfSha256Native {
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The DHKEM(P-384, HKDF-SHA384) for HPKE KEM implementing {@link KemInterface}.
|
|
99
|
+
*
|
|
100
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
101
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KemId.DhkemP384HkdfSha384`
|
|
102
|
+
* as follows:
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
*
|
|
106
|
+
* ```ts
|
|
107
|
+
* import {
|
|
108
|
+
* Aes128Gcm,
|
|
109
|
+
* CipherSuite,
|
|
110
|
+
* DhkemP384HkdfSha384,
|
|
111
|
+
* HkdfSha384,
|
|
112
|
+
* } from "@hpke/core";
|
|
113
|
+
*
|
|
114
|
+
* const suite = new CipherSuite({
|
|
115
|
+
* kem: new DhkemP384HkdfSha384(),
|
|
116
|
+
* kdf: new HkdfSha384(),
|
|
117
|
+
* aead: new Aes128Gcm(),
|
|
118
|
+
* });
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
export declare class DhkemP384HkdfSha384 extends DhkemP384HkdfSha384Native {
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The DHKEM(P-521, HKDF-SHA512) for HPKE KEM implementing {@link KemInterface}.
|
|
125
|
+
*
|
|
126
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
127
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KemId.DhkemP521HkdfSha512`
|
|
128
|
+
* as follows:
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
*
|
|
132
|
+
* ```ts
|
|
133
|
+
* import {
|
|
134
|
+
* Aes256Gcm,
|
|
135
|
+
* CipherSuite,
|
|
136
|
+
* DhkemP521HkdfSha512,
|
|
137
|
+
* HkdfSha512,
|
|
138
|
+
* } from "@hpke/core";
|
|
139
|
+
*
|
|
140
|
+
* const suite = new CipherSuite({
|
|
141
|
+
* kem: new DhkemP521HkdfSha512(),
|
|
142
|
+
* kdf: new HkdfSha512(),
|
|
143
|
+
* aead: new Aes256Gcm(),
|
|
144
|
+
* });
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
export declare class DhkemP521HkdfSha512 extends DhkemP521HkdfSha512Native {
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The HKDF-SHA256 for HPKE KDF implementing {@link KdfInterface}.
|
|
151
|
+
*
|
|
152
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
153
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KdfId.HkdfSha256`.
|
|
154
|
+
*
|
|
155
|
+
* The KDF class can only derive keys of the same length as the `hashSize`.
|
|
156
|
+
* If you want to derive keys longer than the `hashSize`,
|
|
157
|
+
* please use {@link https://jsr.io/@hpke/hpke-js/doc/~/CipherSuite | hpke-js#CipherSuite}.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
*
|
|
161
|
+
* ```ts
|
|
162
|
+
* import {
|
|
163
|
+
* Aes128Gcm,
|
|
164
|
+
* CipherSuite,
|
|
165
|
+
* DhkemP256HkdfSha256,
|
|
166
|
+
* HkdfSha256,
|
|
167
|
+
* } from "@hpke/core";
|
|
168
|
+
*
|
|
169
|
+
* const suite = new CipherSuite({
|
|
170
|
+
* kem: new DhkemP256HkdfSha256(),
|
|
171
|
+
* kdf: new HkdfSha256(),
|
|
172
|
+
* aead: new Aes128Gcm(),
|
|
173
|
+
* });
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
export declare class HkdfSha256 extends HkdfSha256Native {
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* The HKDF-SHA384 for HPKE KDF implementing {@link KdfInterface}.
|
|
180
|
+
*
|
|
181
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
182
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KdfId.HkdfSha384`.
|
|
183
|
+
*
|
|
184
|
+
* The KDF class can only derive keys of the same length as the `hashSize`.
|
|
185
|
+
* If you want to derive keys longer than the `hashSize`,
|
|
186
|
+
* please use {@link https://jsr.io/@hpke/hpke-js/doc/~/CipherSuite | hpke-js#CipherSuite}.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
*
|
|
190
|
+
* ```ts
|
|
191
|
+
* import {
|
|
192
|
+
* Aes128Gcm,
|
|
193
|
+
* CipherSuite,
|
|
194
|
+
* DhkemP384HkdfSha384,
|
|
195
|
+
* HkdfSha384,
|
|
196
|
+
* } from "@hpke/core";
|
|
197
|
+
*
|
|
198
|
+
* const suite = new CipherSuite({
|
|
199
|
+
* kem: new DhkemP384HkdfSha384(),
|
|
200
|
+
* kdf: new HkdfSha384(),
|
|
201
|
+
* aead: new Aes128Gcm(),
|
|
202
|
+
* });
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
export declare class HkdfSha384 extends HkdfSha384Native {
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* The HKDF-SHA512 for HPKE KDF implementing {@link KdfInterface}.
|
|
209
|
+
*
|
|
210
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
211
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KdfId.HkdfSha512`.
|
|
212
|
+
*
|
|
213
|
+
* The KDF class can only derive keys of the same length as the `hashSize`.
|
|
214
|
+
* If you want to derive keys longer than the `hashSize`,
|
|
215
|
+
* please use {@link https://jsr.io/@hpke/hpke-js/doc/~/CipherSuite | hpke-js#CipherSuite}.
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
*
|
|
219
|
+
* ```ts
|
|
220
|
+
* import {
|
|
221
|
+
* Aes256Gcm,
|
|
222
|
+
* CipherSuite,
|
|
223
|
+
* DhkemP521HkdfSha512,
|
|
224
|
+
* HkdfSha512,
|
|
225
|
+
* } from "@hpke/core";
|
|
226
|
+
*
|
|
227
|
+
* const suite = new CipherSuite({
|
|
228
|
+
* kem: new DhkemP521HkdfSha512(),
|
|
229
|
+
* kdf: new HkdfSha512(),
|
|
230
|
+
* aead: new Aes256Gcm(),
|
|
231
|
+
* });
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
export declare class HkdfSha512 extends HkdfSha512Native {
|
|
235
|
+
}
|
|
236
|
+
//# sourceMappingURL=native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../src/src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,qBAAa,WAAY,SAAQ,iBAAiB;CAAG;AAErD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,mBAAoB,SAAQ,yBAAyB;CAAG;AAErE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,mBAAoB,SAAQ,yBAAyB;CAAG;AAErE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,mBAAoB,SAAQ,yBAAyB;CAAG;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,UAAW,SAAQ,gBAAgB;CAAG;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,UAAW,SAAQ,gBAAgB;CAAG;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,UAAW,SAAQ,gBAAgB;CAAG"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { HkdfSha256Native, HkdfSha384Native, HkdfSha512Native, } from "@hpke/common";
|
|
2
|
+
import { CipherSuiteNative } from "./cipherSuiteNative.js";
|
|
3
|
+
import { DhkemP256HkdfSha256Native, DhkemP384HkdfSha384Native, DhkemP521HkdfSha512Native, } from "./kems/dhkemNative.js";
|
|
4
|
+
/**
|
|
5
|
+
* The Hybrid Public Key Encryption (HPKE) ciphersuite,
|
|
6
|
+
* which is implemented using only
|
|
7
|
+
* {@link https://www.w3.org/TR/WebCryptoAPI/ | Web Cryptography API}.
|
|
8
|
+
*
|
|
9
|
+
* This class is the same as
|
|
10
|
+
* {@link https://jsr.io/@hpke/core/doc/~/CipherSuiteNative | @hpke/core#CipherSuiteNative} as follows:
|
|
11
|
+
* which supports only the ciphersuites that can be implemented on the native
|
|
12
|
+
* {@link https://www.w3.org/TR/WebCryptoAPI/ | Web Cryptography API}.
|
|
13
|
+
* Therefore, the following cryptographic algorithms are not supported for now:
|
|
14
|
+
* - `DHKEM(X448, HKDF-SHA512)`
|
|
15
|
+
* - `ChaCha20Poly1305`
|
|
16
|
+
*
|
|
17
|
+
* In addtion, the HKDF functions contained in this `CipherSuiteNative`
|
|
18
|
+
* class can only derive keys of the same length as the `hashSize`.
|
|
19
|
+
*
|
|
20
|
+
* If you want to use the unsupported cryptographic algorithms
|
|
21
|
+
* above or derive keys longer than the `hashSize`,
|
|
22
|
+
* please use {@link https://jsr.io/@hpke/hpke-js/doc/~/CipherSuite | hpke-js#CipherSuite}.
|
|
23
|
+
*
|
|
24
|
+
* This class provides following functions:
|
|
25
|
+
*
|
|
26
|
+
* - Creates encryption contexts both for senders and recipients.
|
|
27
|
+
* - {@link createSenderContext}
|
|
28
|
+
* - {@link createRecipientContext}
|
|
29
|
+
* - Provides single-shot encryption API.
|
|
30
|
+
* - {@link seal}
|
|
31
|
+
* - {@link open}
|
|
32
|
+
*
|
|
33
|
+
* The calling of the constructor of this class is the starting
|
|
34
|
+
* point for HPKE operations for both senders and recipients.
|
|
35
|
+
*
|
|
36
|
+
* @example Use only ciphersuites supported by Web Cryptography API.
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* import {
|
|
40
|
+
* Aes128Gcm,
|
|
41
|
+
* DhkemP256HkdfSha256,
|
|
42
|
+
* HkdfSha256,
|
|
43
|
+
* CipherSuite,
|
|
44
|
+
* } from "@hpke/core";
|
|
45
|
+
*
|
|
46
|
+
* const suite = new CipherSuite({
|
|
47
|
+
* kem: new DhkemP256HkdfSha256(),
|
|
48
|
+
* kdf: new HkdfSha256(),
|
|
49
|
+
* aead: new Aes128Gcm(),
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @example Use DHKEM(X25519, HKDF-SHA256).
|
|
54
|
+
*
|
|
55
|
+
* ```ts
|
|
56
|
+
* import {
|
|
57
|
+
* Aes128Gcm,
|
|
58
|
+
* CipherSuite,
|
|
59
|
+
* DhkemX25519HkdfSha256,
|
|
60
|
+
* HkdfSha256,
|
|
61
|
+
* } from "@hpke/core";
|
|
62
|
+
* const suite = new CipherSuite({
|
|
63
|
+
* kem: new DhkemX25519HkdfSha256(),
|
|
64
|
+
* kdf: new HkdfSha256(),
|
|
65
|
+
* aead: new Aes128Gcm(),
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export class CipherSuite extends CipherSuiteNative {
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The DHKEM(P-256, HKDF-SHA256) for HPKE KEM implementing {@link KemInterface}.
|
|
73
|
+
*
|
|
74
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
75
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KemId.DhkemP256HkdfSha256`
|
|
76
|
+
* as follows:
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
*
|
|
80
|
+
* ```ts
|
|
81
|
+
* import {
|
|
82
|
+
* Aes128Gcm,
|
|
83
|
+
* CipherSuite,
|
|
84
|
+
* DhkemP256HkdfSha256,
|
|
85
|
+
* HkdfSha256,
|
|
86
|
+
* } from "@hpke/core";
|
|
87
|
+
*
|
|
88
|
+
* const suite = new CipherSuite({
|
|
89
|
+
* kem: new DhkemP256HkdfSha256(),
|
|
90
|
+
* kdf: new HkdfSha256(),
|
|
91
|
+
* aead: new Aes128Gcm(),
|
|
92
|
+
* });
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
export class DhkemP256HkdfSha256 extends DhkemP256HkdfSha256Native {
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The DHKEM(P-384, HKDF-SHA384) for HPKE KEM implementing {@link KemInterface}.
|
|
99
|
+
*
|
|
100
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
101
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KemId.DhkemP384HkdfSha384`
|
|
102
|
+
* as follows:
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
*
|
|
106
|
+
* ```ts
|
|
107
|
+
* import {
|
|
108
|
+
* Aes128Gcm,
|
|
109
|
+
* CipherSuite,
|
|
110
|
+
* DhkemP384HkdfSha384,
|
|
111
|
+
* HkdfSha384,
|
|
112
|
+
* } from "@hpke/core";
|
|
113
|
+
*
|
|
114
|
+
* const suite = new CipherSuite({
|
|
115
|
+
* kem: new DhkemP384HkdfSha384(),
|
|
116
|
+
* kdf: new HkdfSha384(),
|
|
117
|
+
* aead: new Aes128Gcm(),
|
|
118
|
+
* });
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
export class DhkemP384HkdfSha384 extends DhkemP384HkdfSha384Native {
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The DHKEM(P-521, HKDF-SHA512) for HPKE KEM implementing {@link KemInterface}.
|
|
125
|
+
*
|
|
126
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
127
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KemId.DhkemP521HkdfSha512`
|
|
128
|
+
* as follows:
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
*
|
|
132
|
+
* ```ts
|
|
133
|
+
* import {
|
|
134
|
+
* Aes256Gcm,
|
|
135
|
+
* CipherSuite,
|
|
136
|
+
* DhkemP521HkdfSha512,
|
|
137
|
+
* HkdfSha512,
|
|
138
|
+
* } from "@hpke/core";
|
|
139
|
+
*
|
|
140
|
+
* const suite = new CipherSuite({
|
|
141
|
+
* kem: new DhkemP521HkdfSha512(),
|
|
142
|
+
* kdf: new HkdfSha512(),
|
|
143
|
+
* aead: new Aes256Gcm(),
|
|
144
|
+
* });
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
export class DhkemP521HkdfSha512 extends DhkemP521HkdfSha512Native {
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The HKDF-SHA256 for HPKE KDF implementing {@link KdfInterface}.
|
|
151
|
+
*
|
|
152
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
153
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KdfId.HkdfSha256`.
|
|
154
|
+
*
|
|
155
|
+
* The KDF class can only derive keys of the same length as the `hashSize`.
|
|
156
|
+
* If you want to derive keys longer than the `hashSize`,
|
|
157
|
+
* please use {@link https://jsr.io/@hpke/hpke-js/doc/~/CipherSuite | hpke-js#CipherSuite}.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
*
|
|
161
|
+
* ```ts
|
|
162
|
+
* import {
|
|
163
|
+
* Aes128Gcm,
|
|
164
|
+
* CipherSuite,
|
|
165
|
+
* DhkemP256HkdfSha256,
|
|
166
|
+
* HkdfSha256,
|
|
167
|
+
* } from "@hpke/core";
|
|
168
|
+
*
|
|
169
|
+
* const suite = new CipherSuite({
|
|
170
|
+
* kem: new DhkemP256HkdfSha256(),
|
|
171
|
+
* kdf: new HkdfSha256(),
|
|
172
|
+
* aead: new Aes128Gcm(),
|
|
173
|
+
* });
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
export class HkdfSha256 extends HkdfSha256Native {
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* The HKDF-SHA384 for HPKE KDF implementing {@link KdfInterface}.
|
|
180
|
+
*
|
|
181
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
182
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KdfId.HkdfSha384`.
|
|
183
|
+
*
|
|
184
|
+
* The KDF class can only derive keys of the same length as the `hashSize`.
|
|
185
|
+
* If you want to derive keys longer than the `hashSize`,
|
|
186
|
+
* please use {@link https://jsr.io/@hpke/hpke-js/doc/~/CipherSuite | hpke-js#CipherSuite}.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
*
|
|
190
|
+
* ```ts
|
|
191
|
+
* import {
|
|
192
|
+
* Aes128Gcm,
|
|
193
|
+
* CipherSuite,
|
|
194
|
+
* DhkemP384HkdfSha384,
|
|
195
|
+
* HkdfSha384,
|
|
196
|
+
* } from "@hpke/core";
|
|
197
|
+
*
|
|
198
|
+
* const suite = new CipherSuite({
|
|
199
|
+
* kem: new DhkemP384HkdfSha384(),
|
|
200
|
+
* kdf: new HkdfSha384(),
|
|
201
|
+
* aead: new Aes128Gcm(),
|
|
202
|
+
* });
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
export class HkdfSha384 extends HkdfSha384Native {
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* The HKDF-SHA512 for HPKE KDF implementing {@link KdfInterface}.
|
|
209
|
+
*
|
|
210
|
+
* When using `@hpke/core`, the instance of this class must be specified
|
|
211
|
+
* to the `kem` parameter of {@link CipherSuiteParams} instead of `KdfId.HkdfSha512`.
|
|
212
|
+
*
|
|
213
|
+
* The KDF class can only derive keys of the same length as the `hashSize`.
|
|
214
|
+
* If you want to derive keys longer than the `hashSize`,
|
|
215
|
+
* please use {@link https://jsr.io/@hpke/hpke-js/doc/~/CipherSuite | hpke-js#CipherSuite}.
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
*
|
|
219
|
+
* ```ts
|
|
220
|
+
* import {
|
|
221
|
+
* Aes256Gcm,
|
|
222
|
+
* CipherSuite,
|
|
223
|
+
* DhkemP521HkdfSha512,
|
|
224
|
+
* HkdfSha512,
|
|
225
|
+
* } from "@hpke/core";
|
|
226
|
+
*
|
|
227
|
+
* const suite = new CipherSuite({
|
|
228
|
+
* kem: new DhkemP521HkdfSha512(),
|
|
229
|
+
* kdf: new HkdfSha512(),
|
|
230
|
+
* aead: new Aes256Gcm(),
|
|
231
|
+
* });
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
export class HkdfSha512 extends HkdfSha512Native {
|
|
235
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EncryptionContextImpl } from "./encryptionContext.js";
|
|
2
|
+
export declare class RecipientContextImpl extends EncryptionContextImpl {
|
|
3
|
+
#private;
|
|
4
|
+
open(data: ArrayBufferLike | ArrayBufferView, aad?: ArrayBufferLike | ArrayBufferView): Promise<ArrayBuffer>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=recipientContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipientContext.d.ts","sourceRoot":"","sources":["../../src/src/recipientContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,qBAAa,oBAAqB,SAAQ,qBAAqB;;IAG9C,IAAI,CACjB,IAAI,EAAE,eAAe,GAAG,eAAe,EACvC,GAAG,GAAE,eAAe,GAAG,eAA6C,GACnE,OAAO,CAAC,WAAW,CAAC;CAkBxB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
+
};
|
|
6
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
7
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
|
+
};
|
|
12
|
+
var _RecipientContextImpl_mutex;
|
|
13
|
+
import { EMPTY, OpenError, toArrayBuffer } from "@hpke/common";
|
|
14
|
+
import { EncryptionContextImpl } from "./encryptionContext.js";
|
|
15
|
+
import { Mutex } from "./mutex.js";
|
|
16
|
+
export class RecipientContextImpl extends EncryptionContextImpl {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
_RecipientContextImpl_mutex.set(this, void 0);
|
|
20
|
+
}
|
|
21
|
+
async open(data, aad = EMPTY.buffer) {
|
|
22
|
+
__classPrivateFieldSet(this, _RecipientContextImpl_mutex, __classPrivateFieldGet(this, _RecipientContextImpl_mutex, "f") ?? new Mutex(), "f");
|
|
23
|
+
const release = await __classPrivateFieldGet(this, _RecipientContextImpl_mutex, "f").lock();
|
|
24
|
+
let pt;
|
|
25
|
+
try {
|
|
26
|
+
pt = await this._ctx.key.open(this.computeNonce(this._ctx), toArrayBuffer(data), toArrayBuffer(aad));
|
|
27
|
+
}
|
|
28
|
+
catch (e) {
|
|
29
|
+
throw new OpenError(e);
|
|
30
|
+
}
|
|
31
|
+
finally {
|
|
32
|
+
release();
|
|
33
|
+
}
|
|
34
|
+
this.incrementSeq(this._ctx);
|
|
35
|
+
return pt;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
_RecipientContextImpl_mutex = new WeakMap();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { KdfInterface } from "@hpke/common";
|
|
2
|
+
import type { AeadParams } from "./interfaces/aeadParams.js";
|
|
3
|
+
import type { Encapsulator } from "./interfaces/encapsulator.js";
|
|
4
|
+
import { EncryptionContextImpl } from "./encryptionContext.js";
|
|
5
|
+
export declare class SenderContextImpl extends EncryptionContextImpl implements Encapsulator {
|
|
6
|
+
#private;
|
|
7
|
+
readonly enc: ArrayBuffer;
|
|
8
|
+
constructor(api: SubtleCrypto, kdf: KdfInterface, params: AeadParams, enc: ArrayBuffer);
|
|
9
|
+
seal(data: ArrayBufferLike | ArrayBufferView, aad?: ArrayBufferLike | ArrayBufferView): Promise<ArrayBuffer>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=senderContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"senderContext.d.ts","sourceRoot":"","sources":["../../src/src/senderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,qBAAa,iBAAkB,SAAQ,qBACrC,YAAW,YAAY;;IACvB,SAAgB,GAAG,EAAE,WAAW,CAAC;gBAI/B,GAAG,EAAE,YAAY,EACjB,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,WAAW;IAMH,IAAI,CACjB,IAAI,EAAE,eAAe,GAAG,eAAe,EACvC,GAAG,GAAE,eAAe,GAAG,eAA6C,GACnE,OAAO,CAAC,WAAW,CAAC;CAkBxB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
+
};
|
|
6
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
7
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
|
+
};
|
|
12
|
+
var _SenderContextImpl_mutex;
|
|
13
|
+
import { EMPTY, SealError, toArrayBuffer } from "@hpke/common";
|
|
14
|
+
import { EncryptionContextImpl } from "./encryptionContext.js";
|
|
15
|
+
import { Mutex } from "./mutex.js";
|
|
16
|
+
export class SenderContextImpl extends EncryptionContextImpl {
|
|
17
|
+
constructor(api, kdf, params, enc) {
|
|
18
|
+
super(api, kdf, params);
|
|
19
|
+
Object.defineProperty(this, "enc", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: void 0
|
|
24
|
+
});
|
|
25
|
+
_SenderContextImpl_mutex.set(this, void 0);
|
|
26
|
+
this.enc = enc;
|
|
27
|
+
}
|
|
28
|
+
async seal(data, aad = EMPTY.buffer) {
|
|
29
|
+
__classPrivateFieldSet(this, _SenderContextImpl_mutex, __classPrivateFieldGet(this, _SenderContextImpl_mutex, "f") ?? new Mutex(), "f");
|
|
30
|
+
const release = await __classPrivateFieldGet(this, _SenderContextImpl_mutex, "f").lock();
|
|
31
|
+
let ct;
|
|
32
|
+
try {
|
|
33
|
+
ct = await this._ctx.key.seal(this.computeNonce(this._ctx), toArrayBuffer(data), toArrayBuffer(aad));
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
throw new SealError(e);
|
|
37
|
+
}
|
|
38
|
+
finally {
|
|
39
|
+
release();
|
|
40
|
+
}
|
|
41
|
+
this.incrementSeq(this._ctx);
|
|
42
|
+
return ct;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
_SenderContextImpl_mutex = new WeakMap();
|
package/node_modules/@hap/core/node_modules/@hpke/core/esm/src/utils/emitNotSupported.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emitNotSupported.d.ts","sourceRoot":"","sources":["../../../src/src/utils/emitNotSupported.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAIhD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hpke/core",
|
|
3
|
+
"version": "1.9.0",
|
|
4
|
+
"description": "A Hybrid Public Key Encryption (HPKE) core module for various JavaScript runtimes",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"hpke",
|
|
7
|
+
"rfc9180",
|
|
8
|
+
"hkdf",
|
|
9
|
+
"dh",
|
|
10
|
+
"security",
|
|
11
|
+
"encryption"
|
|
12
|
+
],
|
|
13
|
+
"author": "Ajitomi Daisuke",
|
|
14
|
+
"homepage": "https://github.com/dajiaji/hpke-js/tree/main/core#readme",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/dajiaji/hpke-js.git"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/dajiaji/hpke-js/issues"
|
|
22
|
+
},
|
|
23
|
+
"main": "./script/mod.js",
|
|
24
|
+
"module": "./esm/mod.js",
|
|
25
|
+
"types": "./esm/mod.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./esm/mod.js",
|
|
29
|
+
"require": "./script/mod.js"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=16.0.0"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@hpke/common": "^1.10.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^20.9.0",
|
|
42
|
+
"@deno/shim-deno": "~0.18.0",
|
|
43
|
+
"picocolors": "^1.0.0"
|
|
44
|
+
},
|
|
45
|
+
"_generatedBy": "dnt@dev"
|
|
46
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type { AeadEncryptionContext, AeadInterface, JsonWebKeyExtended, KdfInterface, KemInterface, PreSharedKey, RecipientContextParams, SenderContextParams, } from "@hpke/common";
|
|
2
|
+
export type { CipherSuiteParams } from "./src/interfaces/cipherSuiteParams.js";
|
|
3
|
+
export type { EncryptionContext, RecipientContext, SenderContext, } from "./src/interfaces/encryptionContext.js";
|
|
4
|
+
export type { CipherSuiteSealResponse } from "./src/interfaces/responses.js";
|
|
5
|
+
export { AeadId, DecapError, DeriveKeyPairError, DeserializeError, EncapError, ExportError, HpkeError, InvalidParamError, KdfId, KemId, MessageLimitReachedError, NotSupportedError, OpenError, SealError, SerializeError, ValidationError, } from "@hpke/common";
|
|
6
|
+
export { Aes128Gcm, Aes256Gcm } from "./src/aeads/aesGcm.js";
|
|
7
|
+
export { ExportOnly } from "./src/aeads/exportOnly.js";
|
|
8
|
+
export { CipherSuite, DhkemP256HkdfSha256, DhkemP384HkdfSha384, DhkemP521HkdfSha512, HkdfSha256, HkdfSha384, HkdfSha512, } from "./src/native.js";
|
|
9
|
+
export { DhkemX25519HkdfSha256 } from "./src/kems/dhkemX25519.js";
|
|
10
|
+
export { DhkemX448HkdfSha512 } from "./src/kems/dhkemX448.js";
|
|
11
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,GACd,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EACL,MAAM,EACN,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,KAAK,EACL,KAAK,EACL,wBAAwB,EACxB,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,cAAc,EACd,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,UAAU,EACV,UAAU,GACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC"}
|