@lindorm/aes 0.6.3 → 0.6.5
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 +8 -0
- package/__tests__/helpers/jwe-adapter.ts +9 -3
- package/dist/classes/AesKit.d.ts +5 -2
- package/dist/classes/AesKit.d.ts.map +1 -1
- package/dist/classes/AesKit.js +6 -6
- package/dist/classes/AesKit.js.map +1 -1
- package/dist/interfaces/AesKit.d.ts +1 -1
- package/dist/interfaces/AesKit.d.ts.map +1 -1
- package/dist/internal/types/aes-data.d.ts +17 -3
- package/dist/internal/types/aes-data.d.ts.map +1 -1
- package/dist/internal/types/content-encryption-key.d.ts +0 -4
- package/dist/internal/types/content-encryption-key.d.ts.map +1 -1
- package/dist/internal/utils/aes-header.js +1 -1
- package/dist/internal/utils/aes-header.js.map +1 -1
- package/dist/internal/utils/data/auth-tag-hmac.d.ts +1 -1
- package/dist/internal/utils/data/auth-tag-hmac.d.ts.map +1 -1
- package/dist/internal/utils/data/auth-tag.d.ts +1 -1
- package/dist/internal/utils/data/auth-tag.d.ts.map +1 -1
- package/dist/internal/utils/diffie-hellman/diffie-hellman-key-wrap.d.ts +3 -3
- package/dist/internal/utils/diffie-hellman/diffie-hellman-key-wrap.d.ts.map +1 -1
- package/dist/internal/utils/diffie-hellman/diffie-hellman-key-wrap.js +6 -10
- package/dist/internal/utils/diffie-hellman/diffie-hellman-key-wrap.js.map +1 -1
- package/dist/internal/utils/diffie-hellman/diffie-hellman.d.ts +3 -3
- package/dist/internal/utils/diffie-hellman/diffie-hellman.d.ts.map +1 -1
- package/dist/internal/utils/diffie-hellman/diffie-hellman.js +4 -8
- package/dist/internal/utils/diffie-hellman/diffie-hellman.js.map +1 -1
- package/dist/internal/utils/diffie-hellman/shared-secret.d.ts +1 -1
- package/dist/internal/utils/diffie-hellman/shared-secret.d.ts.map +1 -1
- package/dist/internal/utils/encrypt-content.d.ts +1 -1
- package/dist/internal/utils/encrypt-content.d.ts.map +1 -1
- package/dist/internal/utils/encrypt-content.js +5 -5
- package/dist/internal/utils/encrypt-content.js.map +1 -1
- package/dist/internal/utils/encrypt-encoded.js +5 -5
- package/dist/internal/utils/encrypt-encoded.js.map +1 -1
- package/dist/internal/utils/encrypt-serialised.js +6 -6
- package/dist/internal/utils/encrypt-serialised.js.map +1 -1
- package/dist/internal/utils/encrypt-tokenised.js +5 -5
- package/dist/internal/utils/encrypt-tokenised.js.map +1 -1
- package/dist/internal/utils/encryption.d.ts +1 -1
- package/dist/internal/utils/encryption.d.ts.map +1 -1
- package/dist/internal/utils/encryption.js +8 -8
- package/dist/internal/utils/encryption.js.map +1 -1
- package/dist/internal/utils/get-key/get-decryption-key.d.ts +1 -1
- package/dist/internal/utils/get-key/get-decryption-key.d.ts.map +1 -1
- package/dist/internal/utils/get-key/get-decryption-key.js +4 -4
- package/dist/internal/utils/get-key/get-decryption-key.js.map +1 -1
- package/dist/internal/utils/get-key/get-encryption-key.d.ts +1 -1
- package/dist/internal/utils/get-key/get-encryption-key.d.ts.map +1 -1
- package/dist/internal/utils/get-key/get-encryption-key.js +4 -4
- package/dist/internal/utils/get-key/get-encryption-key.js.map +1 -1
- package/dist/internal/utils/key-types/get-ec-keys.d.ts +1 -1
- package/dist/internal/utils/key-types/get-ec-keys.d.ts.map +1 -1
- package/dist/internal/utils/key-types/get-ec-keys.js +2 -2
- package/dist/internal/utils/key-types/get-ec-keys.js.map +1 -1
- package/dist/internal/utils/key-types/get-oct-keys.d.ts +1 -1
- package/dist/internal/utils/key-types/get-oct-keys.d.ts.map +1 -1
- package/dist/internal/utils/key-types/get-oct-keys.js +3 -3
- package/dist/internal/utils/key-types/get-oct-keys.js.map +1 -1
- package/dist/internal/utils/key-types/get-okp-keys.d.ts +1 -1
- package/dist/internal/utils/key-types/get-okp-keys.d.ts.map +1 -1
- package/dist/internal/utils/key-types/get-okp-keys.js +2 -2
- package/dist/internal/utils/key-types/get-okp-keys.js.map +1 -1
- package/dist/internal/utils/key-types/get-rsa-keys.d.ts +1 -1
- package/dist/internal/utils/key-types/get-rsa-keys.d.ts.map +1 -1
- package/dist/internal/utils/key-types/get-rsa-keys.js +2 -2
- package/dist/internal/utils/key-types/get-rsa-keys.js.map +1 -1
- package/dist/internal/utils/key-wrap/ecb-key-wrap.d.ts +1 -1
- package/dist/internal/utils/key-wrap/ecb-key-wrap.d.ts.map +1 -1
- package/dist/internal/utils/key-wrap/ecb-key-wrap.js +1 -1
- package/dist/internal/utils/key-wrap/ecb-key-wrap.js.map +1 -1
- package/dist/internal/utils/key-wrap/gcm-key-wrap.d.ts +1 -1
- package/dist/internal/utils/key-wrap/gcm-key-wrap.d.ts.map +1 -1
- package/dist/internal/utils/key-wrap/gcm-key-wrap.js +1 -1
- package/dist/internal/utils/key-wrap/gcm-key-wrap.js.map +1 -1
- package/dist/internal/utils/key-wrap/key-wrap.d.ts +1 -1
- package/dist/internal/utils/key-wrap/key-wrap.d.ts.map +1 -1
- package/dist/internal/utils/oct/get-oct-dir-keys.d.ts +1 -1
- package/dist/internal/utils/oct/get-oct-dir-keys.d.ts.map +1 -1
- package/dist/internal/utils/oct/get-oct-dir-keys.js +1 -1
- package/dist/internal/utils/oct/get-oct-dir-keys.js.map +1 -1
- package/dist/internal/utils/oct/get-oct-key-key-wrap.d.ts +1 -1
- package/dist/internal/utils/oct/get-oct-key-key-wrap.d.ts.map +1 -1
- package/dist/internal/utils/oct/get-oct-key-key-wrap.js +3 -3
- package/dist/internal/utils/oct/get-oct-key-key-wrap.js.map +1 -1
- package/dist/internal/utils/oct/get-oct-pbkdf-key-wrap-keys.d.ts +1 -1
- package/dist/internal/utils/oct/get-oct-pbkdf-key-wrap-keys.d.ts.map +1 -1
- package/dist/internal/utils/oct/get-oct-pbkdf-key-wrap-keys.js +5 -5
- package/dist/internal/utils/oct/get-oct-pbkdf-key-wrap-keys.js.map +1 -1
- package/dist/internal/utils/prepare-encryption.d.ts +1 -1
- package/dist/internal/utils/prepare-encryption.d.ts.map +1 -1
- package/dist/internal/utils/prepare-encryption.js +2 -2
- package/dist/internal/utils/prepare-encryption.js.map +1 -1
- package/dist/internal/utils/serialised-aes.d.ts +2 -2
- package/dist/internal/utils/serialised-aes.d.ts.map +1 -1
- package/dist/internal/utils/serialised-aes.js +2 -2
- package/dist/internal/utils/serialised-aes.js.map +1 -1
- package/dist/internal/utils/tokenised-aes.js +1 -1
- package/dist/internal/utils/tokenised-aes.js.map +1 -1
- package/dist/internal/utils/validate-version.js +1 -1
- package/dist/internal/utils/validate-version.js.map +1 -1
- package/dist/mocks/index.d.ts +1 -1
- package/dist/mocks/index.d.ts.map +1 -1
- package/dist/mocks/index.js +3 -15
- package/dist/mocks/index.js.map +1 -1
- package/dist/mocks/mock-aes-kit.d.ts +2 -1
- package/dist/mocks/mock-aes-kit.d.ts.map +1 -1
- package/dist/mocks/mock-aes-kit.js +53 -8
- package/dist/mocks/mock-aes-kit.js.map +1 -1
- package/dist/types/aes-decryption-data.d.ts +3 -17
- package/dist/types/aes-decryption-data.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/parse-aes.d.ts +9 -2
- package/dist/utils/parse-aes.d.ts.map +1 -1
- package/dist/utils/parse-aes.js +3 -3
- package/dist/utils/parse-aes.js.map +1 -1
- package/package.json +10 -13
- package/tsconfig.interop.json +1 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.6.5](https://github.com/lindorm-io/monorepo/compare/@lindorm/aes@0.6.4...@lindorm/aes@0.6.5) (2026-04-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @lindorm/aes
|
|
9
|
+
|
|
10
|
+
## [0.6.4](https://github.com/lindorm-io/monorepo/compare/@lindorm/aes@0.6.3...@lindorm/aes@0.6.4) (2026-04-15)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @lindorm/aes
|
|
13
|
+
|
|
6
14
|
## [0.6.3](https://github.com/lindorm-io/monorepo/compare/@lindorm/aes@0.6.2...@lindorm/aes@0.6.3) (2026-04-01)
|
|
7
15
|
|
|
8
16
|
### Bug Fixes
|
|
@@ -102,15 +102,21 @@ export const fromFlattenedJWE = (
|
|
|
102
102
|
|
|
103
103
|
const record: AesDecryptionRecord = {
|
|
104
104
|
algorithm: header.alg as AesDecryptionRecord["algorithm"],
|
|
105
|
-
|
|
105
|
+
authTag: Buffer.from(jwe.tag, "base64url"),
|
|
106
106
|
content: Buffer.from(jwe.ciphertext, "base64url"),
|
|
107
|
+
contentType: (header.cty as AesDecryptionRecord["contentType"]) ?? "text/plain",
|
|
108
|
+
encryption: header.enc as AesDecryptionRecord["encryption"],
|
|
107
109
|
initialisationVector: Buffer.from(jwe.iv, "base64url"),
|
|
108
|
-
|
|
110
|
+
keyId: header.kid ?? "jwe-interop",
|
|
111
|
+
pbkdfIterations: undefined,
|
|
112
|
+
pbkdfSalt: undefined,
|
|
113
|
+
publicEncryptionIv: header.iv ? Buffer.from(header.iv, "base64url") : undefined,
|
|
114
|
+
publicEncryptionJwk: undefined,
|
|
109
115
|
publicEncryptionKey: jwe.encrypted_key
|
|
110
116
|
? Buffer.from(jwe.encrypted_key, "base64url")
|
|
111
117
|
: undefined,
|
|
112
|
-
publicEncryptionIv: header.iv ? Buffer.from(header.iv, "base64url") : undefined,
|
|
113
118
|
publicEncryptionTag: header.tag ? Buffer.from(header.tag, "base64url") : undefined,
|
|
119
|
+
version: "1.0",
|
|
114
120
|
};
|
|
115
121
|
|
|
116
122
|
return { record, aad };
|
package/dist/classes/AesKit.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IKryptos } from "@lindorm/kryptos";
|
|
2
2
|
import { AesOperationOptions, IAesKit } from "../interfaces";
|
|
3
|
-
import { AesContent, AesContentType, AesDecryptionRecord, AesEncryptionRecord, AesKitOptions, SerialisedAesDecryption, SerialisedAesEncryption } from "../types";
|
|
4
|
-
import { PreparedEncryption } from "
|
|
3
|
+
import { AesContent, AesContentType, AesDecryptionRecord, AesEncryptionRecord, AesKitOptions, ParsedAesDecryptionRecord, SerialisedAesDecryption, SerialisedAesEncryption } from "../types";
|
|
4
|
+
import { PreparedEncryption } from "../internal/types/prepared-encryption";
|
|
5
5
|
export declare class AesKit implements IAesKit {
|
|
6
6
|
private readonly encryption;
|
|
7
7
|
readonly kryptos: IKryptos;
|
|
@@ -16,6 +16,9 @@ export declare class AesKit implements IAesKit {
|
|
|
16
16
|
prepareEncryption(): PreparedEncryption;
|
|
17
17
|
static contentType(input: any): AesContentType;
|
|
18
18
|
static isAesTokenised(input: any): input is string;
|
|
19
|
+
static parse(data: string): ParsedAesDecryptionRecord;
|
|
20
|
+
static parse(data: SerialisedAesDecryption): ParsedAesDecryptionRecord;
|
|
21
|
+
static parse(data: AesDecryptionRecord): AesDecryptionRecord;
|
|
19
22
|
static parse(data: AesDecryptionRecord | SerialisedAesDecryption | string): AesDecryptionRecord;
|
|
20
23
|
}
|
|
21
24
|
//# sourceMappingURL=AesKit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AesKit.d.ts","sourceRoot":"","sources":["../../src/classes/AesKit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAqB,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EACL,UAAU,EACV,cAAc,EACd,mBAAmB,EAEnB,mBAAmB,EACnB,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AesKit.d.ts","sourceRoot":"","sources":["../../src/classes/AesKit.ts"],"names":[],"mappings":"AACA,OA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uBAAuB,GAAG,MAAM,EAC5D,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI;IAKA,iBAAiB,IAAI,kBAAkB;WAWhC,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,cAAc;WAIvC,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,MAAM;WAI3C,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,yBAAyB;WAC9C,KAAK,CAAC,IAAI,EAAE,uBAAuB,GAAG,yBAAyB;WAC/D,KAAK,CAAC,IAAI,EAAE,mBAAmB,GAAG,mBAAmB;WACrD,KAAK,CACjB,IAAI,EAAE,mBAAmB,GAAG,uBAAuB,GAAG,MAAM,GAC3D,mBAAmB;CAMvB"}
|
package/dist/classes/AesKit.js
CHANGED
|
@@ -4,12 +4,12 @@ exports.AesKit = void 0;
|
|
|
4
4
|
const is_1 = require("@lindorm/is");
|
|
5
5
|
const errors_1 = require("../errors");
|
|
6
6
|
const utils_1 = require("../utils");
|
|
7
|
-
const encryption_1 = require("
|
|
8
|
-
const prepare_encryption_1 = require("
|
|
9
|
-
const content_1 = require("
|
|
10
|
-
const encrypt_encoded_1 = require("
|
|
11
|
-
const encrypt_serialised_1 = require("
|
|
12
|
-
const encrypt_tokenised_1 = require("
|
|
7
|
+
const encryption_1 = require("../internal/utils/encryption");
|
|
8
|
+
const prepare_encryption_1 = require("../internal/utils/prepare-encryption");
|
|
9
|
+
const content_1 = require("../internal/utils/content");
|
|
10
|
+
const encrypt_encoded_1 = require("../internal/utils/encrypt-encoded");
|
|
11
|
+
const encrypt_serialised_1 = require("../internal/utils/encrypt-serialised");
|
|
12
|
+
const encrypt_tokenised_1 = require("../internal/utils/encrypt-tokenised");
|
|
13
13
|
class AesKit {
|
|
14
14
|
encryption;
|
|
15
15
|
kryptos;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AesKit.js","sourceRoot":"","sources":["../../src/classes/AesKit.ts"],"names":[],"mappings":";;;AAAA,o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CAAC,oBAAoB,CAAC,CAAC;IAC3C,CAAC;IAEM,iBAAiB;QACtB,IAAI,CAAC;YACH,OAAO,IAAA,yCAAoB,EAAC,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACtF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,iBAAQ;gBAAE,MAAM,KAAK,CAAC;YAC3C,MAAM,IAAI,iBAAQ,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,KAAc,EAAE,CAAC,CAAC;QACjF,CAAC;IACH,CAAC;IAIM,MAAM,CAAC,WAAW,CAAC,KAAU;QAClC,OAAO,IAAA,8BAAoB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,KAAU;QACrC,OAAO,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAQM,MAAM,CAAC,KAAK,CACjB,IAA4D;QAE5D,OAAO,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IACxB,CAAC;CACF;AApJD,wBAoJC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IKryptos } from "@lindorm/kryptos";
|
|
2
2
|
import { AesContent, AesDecryptionRecord, AesEncryptionRecord, SerialisedAesDecryption, SerialisedAesEncryption } from "../types";
|
|
3
|
-
import { PreparedEncryption } from "
|
|
3
|
+
import { PreparedEncryption } from "../internal/types/prepared-encryption";
|
|
4
4
|
export type AesOperationOptions = {
|
|
5
5
|
aad?: Buffer;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AesKit.d.ts","sourceRoot":"","sources":["../../src/interfaces/AesKit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,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AC,EAAE,mBAAmB,GAC5B,OAAO,CAAC;IACX,MAAM,CACJ,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,mBAAmB,GAAG,uBAAuB,GAAG,MAAM,EAC5D,OAAO,CAAC,EAAE,mBAAmB,GAC5B,IAAI,CAAC;IAER,iBAAiB,IAAI,kBAAkB,CAAC;CACzC"}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
import { IKryptos } from "@lindorm/kryptos";
|
|
2
|
-
import {
|
|
1
|
+
import { IKryptos, KryptosEncryption } from "@lindorm/kryptos";
|
|
2
|
+
import { AesContentType } from "../../types/content";
|
|
3
|
+
import { PublicEncryptionJwk } from "../../types/types";
|
|
4
|
+
import { AesEncryptionOptions, SerialisedAesDecryption } from "../../types/aes-decryption-data";
|
|
3
5
|
export type PrivateAesEncryptionOptions = AesEncryptionOptions & {
|
|
4
6
|
kryptos: IKryptos;
|
|
5
7
|
};
|
|
6
|
-
export type PrivateAesDecryptionOptions =
|
|
8
|
+
export type PrivateAesDecryptionOptions = {
|
|
9
|
+
aad?: Buffer;
|
|
10
|
+
authTag: Buffer;
|
|
11
|
+
content: Buffer;
|
|
12
|
+
contentType?: AesContentType;
|
|
13
|
+
encryption: KryptosEncryption;
|
|
14
|
+
initialisationVector: Buffer;
|
|
7
15
|
kryptos: IKryptos;
|
|
16
|
+
pbkdfIterations?: number;
|
|
17
|
+
pbkdfSalt?: Buffer;
|
|
18
|
+
publicEncryptionIv?: Buffer;
|
|
19
|
+
publicEncryptionJwk?: PublicEncryptionJwk;
|
|
20
|
+
publicEncryptionKey?: Buffer;
|
|
21
|
+
publicEncryptionTag?: Buffer;
|
|
8
22
|
};
|
|
9
23
|
export type PrivateSerialisedAesDecryptionOptions = SerialisedAesDecryption & {
|
|
10
24
|
kryptos: IKryptos;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aes-data.d.ts","sourceRoot":"","sources":["../../../src/internal/types/aes-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"aes-data.d.ts","sourceRoot":"","sources":["../../../src/internal/types/aes-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,2BAA2B,GAAG,oBAAoB,GAAG;IAAE,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC;AAQvF,MAAM,MAAM,2BAA2B,GAAG;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,QAAQ,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG,uBAAuB,GAAG;IAC5E,OAAO,EAAE,QAAQ,CAAC;CACnB,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { IKryptos, KryptosEncryption } from "@lindorm/kryptos";
|
|
2
2
|
import { PublicEncryptionJwk } from "../../types/types";
|
|
3
3
|
export type CreateCekOptions = {
|
|
4
|
-
apu?: Buffer;
|
|
5
|
-
apv?: Buffer;
|
|
6
4
|
encryption: KryptosEncryption;
|
|
7
5
|
kryptos: IKryptos;
|
|
8
6
|
};
|
|
@@ -16,8 +14,6 @@ export type CreateCekResult = {
|
|
|
16
14
|
publicEncryptionTag?: Buffer;
|
|
17
15
|
};
|
|
18
16
|
export type DecryptCekOptions = {
|
|
19
|
-
apu?: Buffer;
|
|
20
|
-
apv?: Buffer;
|
|
21
17
|
encryption: KryptosEncryption;
|
|
22
18
|
kryptos: IKryptos;
|
|
23
19
|
pbkdfIterations?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-encryption-key.d.ts","sourceRoot":"","sources":["../../../src/internal/types/content-encryption-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,
|
|
1
|
+
{"version":3,"file":"content-encryption-key.d.ts","sourceRoot":"","sources":["../../../src/internal/types/content-encryption-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,OAAO,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,OAAO,EAAE,QAAQ,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.headerToDecryptionParams = exports.computeAad = exports.decodeAesHeader = exports.encodeAesHeader = exports.buildAesHeader = void 0;
|
|
4
4
|
const b64_1 = require("@lindorm/b64");
|
|
5
|
-
const version_1 = require("
|
|
5
|
+
const version_1 = require("../constants/version");
|
|
6
6
|
const AesError_1 = require("../../errors/AesError");
|
|
7
7
|
const validate_version_1 = require("./validate-version");
|
|
8
8
|
const sortKeys = (obj) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aes-header.js","sourceRoot":"","sources":["../../../src/internal/utils/aes-header.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAEnC,
|
|
1
|
+
{"version":3,"file":"aes-header.js","sourceRoot":"","sources":["../../../src/internal/utils/aes-header.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAEnC,kDAA0D;AAC1D,oDAAiD;AAGjD,yDAAwD;AA2BxD,MAAM,QAAQ,GAAG,CAAoC,GAAM,EAAK,EAAE;IAChE,MAAM,MAAM,GAA4B,EAAE,CAAC;IAC3C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,C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AAS,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,SAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;IACpE,kBAAkB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;IAC3E,mBAAmB,EAAE,MAAM,CAAC,GAAG;IAC/B,mBAAmB,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,SAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;IAC9E,OAAO,EAAE,MAAM,CAAC,CAAC;CAClB,CAAC,CAAC;AAxBU,QAAA,wBAAwB,4BAwBlC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateHmacAuthTag, VerifyHmacAuthTag } from "
|
|
1
|
+
import { CreateHmacAuthTag, VerifyHmacAuthTag } from "../../types/auth-tag";
|
|
2
2
|
export declare const createHmacAuthTag: ({ aad, content, hashKey, initialisationVector, encryption, }: CreateHmacAuthTag) => Buffer;
|
|
3
3
|
export declare const assertHmacAuthTag: ({ aad, authTag, content, encryption, hashKey, initialisationVector, }: VerifyHmacAuthTag) => void;
|
|
4
4
|
//# sourceMappingURL=auth-tag-hmac.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-tag-hmac.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/data/auth-tag-hmac.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"auth-tag-hmac.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/data/auth-tag-hmac.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAkB5E,eAAO,MAAM,iBAAiB,GAAI,8DAM/B,iBAAiB,KAAG,MAiBtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,uEAO/B,iBAAiB,KAAG,IAYtB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAuthTagOptions, SetAuthTagOptions } from "
|
|
1
|
+
import { GetAuthTagOptions, SetAuthTagOptions } from "../../types/auth-tag";
|
|
2
2
|
export declare const createAuthTag: ({ aad, encryption, cipher, content, hashKey, initialisationVector, }: GetAuthTagOptions) => Buffer;
|
|
3
3
|
export declare const assertAuthTag: ({ aad, authTag, content, hashKey, decipher, encryption, initialisationVector, }: SetAuthTagOptions) => void;
|
|
4
4
|
//# sourceMappingURL=auth-tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-tag.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/data/auth-tag.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"auth-tag.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/data/auth-tag.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG5E,eAAO,MAAM,aAAa,GAAI,sEAO3B,iBAAiB,KAAG,MAqBtB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,iFAQ3B,iBAAiB,KAAG,IA4BtB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateCekOptions, CreateCekResult, DecryptCekOptions, DecryptCekResult } from "
|
|
2
|
-
export declare const getDiffieHellmanKeyWrapEncryptionKey: ({
|
|
3
|
-
export declare const getDiffieHellmanKeyWrapDecryptionKey: ({
|
|
1
|
+
import { CreateCekOptions, CreateCekResult, DecryptCekOptions, DecryptCekResult } from "../../types/content-encryption-key";
|
|
2
|
+
export declare const getDiffieHellmanKeyWrapEncryptionKey: ({ encryption, kryptos, }: CreateCekOptions) => CreateCekResult;
|
|
3
|
+
export declare const getDiffieHellmanKeyWrapDecryptionKey: ({ kryptos, publicEncryptionJwk, publicEncryptionIv, publicEncryptionKey, publicEncryptionTag, }: DecryptCekOptions) => DecryptCekResult;
|
|
4
4
|
//# sourceMappingURL=diffie-hellman-key-wrap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diffie-hellman-key-wrap.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/diffie-hellman-key-wrap.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"diffie-hellman-key-wrap.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/diffie-hellman-key-wrap.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAO5C,eAAO,MAAM,oCAAoC,GAAI,0BAGlD,gBAAgB,KAAG,eAyBrB,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAAI,iGAMlD,iBAAiB,KAAG,gBAoBtB,CAAC"}
|
|
@@ -3,19 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getDiffieHellmanKeyWrapDecryptionKey = exports.getDiffieHellmanKeyWrapEncryptionKey = void 0;
|
|
4
4
|
const crypto_1 = require("crypto");
|
|
5
5
|
const errors_1 = require("../../../errors");
|
|
6
|
-
const calculate_content_encryption_key_size_1 = require("
|
|
7
|
-
const calculate_key_wrap_size_1 = require("
|
|
8
|
-
const concat_kdf_1 = require("
|
|
9
|
-
const key_wrap_1 = require("
|
|
6
|
+
const calculate_content_encryption_key_size_1 = require("../calculate/calculate-content-encryption-key-size");
|
|
7
|
+
const calculate_key_wrap_size_1 = require("../calculate/calculate-key-wrap-size");
|
|
8
|
+
const concat_kdf_1 = require("../key-derivation/concat-kdf");
|
|
9
|
+
const key_wrap_1 = require("../key-wrap/key-wrap");
|
|
10
10
|
const shared_secret_1 = require("./shared-secret");
|
|
11
|
-
const getDiffieHellmanKeyWrapEncryptionKey = ({
|
|
11
|
+
const getDiffieHellmanKeyWrapEncryptionKey = ({ encryption, kryptos, }) => {
|
|
12
12
|
const { publicEncryptionJwk, sharedSecret } = (0, shared_secret_1.generateSharedSecret)(kryptos);
|
|
13
13
|
const cekSize = (0, calculate_content_encryption_key_size_1.calculateContentEncryptionKeySize)(encryption);
|
|
14
14
|
const contentEncryptionKey = (0, crypto_1.randomBytes)(cekSize);
|
|
15
15
|
const { derivedKey } = (0, concat_kdf_1.concatKdf)({
|
|
16
16
|
algorithm: kryptos.algorithm,
|
|
17
|
-
apu,
|
|
18
|
-
apv,
|
|
19
17
|
keyLength: (0, calculate_key_wrap_size_1.calculateKeyWrapSize)(kryptos.algorithm),
|
|
20
18
|
sharedSecret,
|
|
21
19
|
});
|
|
@@ -33,15 +31,13 @@ const getDiffieHellmanKeyWrapEncryptionKey = ({ apu, apv, encryption, kryptos, }
|
|
|
33
31
|
};
|
|
34
32
|
};
|
|
35
33
|
exports.getDiffieHellmanKeyWrapEncryptionKey = getDiffieHellmanKeyWrapEncryptionKey;
|
|
36
|
-
const getDiffieHellmanKeyWrapDecryptionKey = ({
|
|
34
|
+
const getDiffieHellmanKeyWrapDecryptionKey = ({ kryptos, publicEncryptionJwk, publicEncryptionIv, publicEncryptionKey, publicEncryptionTag, }) => {
|
|
37
35
|
if (!publicEncryptionKey) {
|
|
38
36
|
throw new errors_1.AesError("Missing publicEncryptionKey");
|
|
39
37
|
}
|
|
40
38
|
const sharedSecret = (0, shared_secret_1.calculateSharedSecret)({ kryptos, publicEncryptionJwk });
|
|
41
39
|
const { derivedKey } = (0, concat_kdf_1.concatKdf)({
|
|
42
40
|
algorithm: kryptos.algorithm,
|
|
43
|
-
apu,
|
|
44
|
-
apv,
|
|
45
41
|
keyLength: (0, calculate_key_wrap_size_1.calculateKeyWrapSize)(kryptos.algorithm),
|
|
46
42
|
sharedSecret,
|
|
47
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diffie-hellman-key-wrap.js","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/diffie-hellman-key-wrap.ts"],"names":[],"mappings":";;;AAAA,mCAAqC;AACrC,4CAA2C;AAO3C,
|
|
1
|
+
{"version":3,"file":"diffie-hellman-key-wrap.js","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/diffie-hellman-key-wrap.ts"],"names":[],"mappings":";;;AAAA,mCAAqC;AACrC,4CAA2C;AAO3C,8GAAuG;AACvG,kFAA4E;AAC5E,6DAAyD;AACzD,mDAA0D;AAC1D,mDAA8E;AAEvE,MAAM,oCAAoC,GAAG,CAAC,EACnD,UAAU,EACV,OAAO,GACU,EAAmB,EAAE;IACtC,MAAM,EAAE,mBAAmB,EAAE,YAAY,EAAE,GAAG,IAAA,oCAAoB,EAAC,OAAO,CAAC,CAAC;IAE5E,MAAM,OAAO,GAAG,IAAA,yEAAiC,EAAC,UAAU,CAAC,CAAC;IAC9D,MAAM,oBAAoB,GAAG,IAAA,oBAAW,EAAC,OAAO,CAAC,CAAC;IAElD,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,sBAAS,EAAC;QAC/B,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,IAAA,8CAAoB,EAAC,OAAO,CAAC,SAAS,CAAC;QAClD,YAAY;KACb,CAAC,CAAC;IAEH,MAAM,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,GAAG,IAAA,kBAAO,EAAC;QAC/E,oBAAoB;QACpB,OAAO;QACP,gBAAgB,EAAE,UAAU;KAC7B,CAAC,CAAC;IAEH,OAAO;QACL,oBAAoB;QACpB,mBAAmB;QACnB,mBAAmB;QACnB,kBAAkB;QAClB,mBAAmB;KACpB,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,oCAAoC,wCA4B/C;AAEK,MAAM,oCAAoC,GAAG,CAAC,EACnD,OAAO,EACP,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,GACD,EAAoB,EAAE;IACxC,IAAI,CAAC,mBAAmB,EAAE,CAAC;QACzB,MAAM,IAAI,iBAAQ,CAAC,6BAA6B,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,YAAY,GAAG,IAAA,qCAAqB,EAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,CAAC;IAE7E,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,sBAAS,EAAC;QAC/B,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,IAAA,8CAAoB,EAAC,OAAO,CAAC,SAAS,CAAC;QAClD,YAAY;KACb,CAAC,CAAC;IAEH,OAAO,IAAA,oBAAS,EAAC;QACf,gBAAgB,EAAE,UAAU;QAC5B,OAAO;QACP,kBAAkB;QAClB,mBAAmB;QACnB,mBAAmB;KACpB,CAAC,CAAC;AACL,CAAC,CAAC;AA1BW,QAAA,oCAAoC,wCA0B/C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateCekOptions, CreateCekResult, DecryptCekOptions, DecryptCekResult } from "
|
|
2
|
-
export declare const getDiffieHellmanEncryptionKey: ({
|
|
3
|
-
export declare const getDiffieHellmanDecryptionKey: ({
|
|
1
|
+
import { CreateCekOptions, CreateCekResult, DecryptCekOptions, DecryptCekResult } from "../../types/content-encryption-key";
|
|
2
|
+
export declare const getDiffieHellmanEncryptionKey: ({ encryption, kryptos, }: CreateCekOptions) => CreateCekResult;
|
|
3
|
+
export declare const getDiffieHellmanDecryptionKey: ({ encryption, kryptos, publicEncryptionJwk, }: DecryptCekOptions) => DecryptCekResult;
|
|
4
4
|
//# sourceMappingURL=diffie-hellman.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diffie-hellman.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/diffie-hellman.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"diffie-hellman.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/diffie-hellman.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAK5C,eAAO,MAAM,6BAA6B,GAAI,0BAG3C,gBAAgB,KAAG,eAcrB,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,+CAI3C,iBAAiB,KAAG,gBAkBtB,CAAC"}
|
|
@@ -3,16 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getDiffieHellmanDecryptionKey = exports.getDiffieHellmanEncryptionKey = void 0;
|
|
4
4
|
const kryptos_1 = require("@lindorm/kryptos");
|
|
5
5
|
const errors_1 = require("../../../errors");
|
|
6
|
-
const calculate_content_encryption_key_size_1 = require("
|
|
7
|
-
const concat_kdf_1 = require("
|
|
6
|
+
const calculate_content_encryption_key_size_1 = require("../calculate/calculate-content-encryption-key-size");
|
|
7
|
+
const concat_kdf_1 = require("../key-derivation/concat-kdf");
|
|
8
8
|
const shared_secret_1 = require("./shared-secret");
|
|
9
|
-
const getDiffieHellmanEncryptionKey = ({
|
|
9
|
+
const getDiffieHellmanEncryptionKey = ({ encryption, kryptos, }) => {
|
|
10
10
|
const { publicEncryptionJwk, sharedSecret } = (0, shared_secret_1.generateSharedSecret)(kryptos);
|
|
11
11
|
const keyLength = (0, calculate_content_encryption_key_size_1.calculateContentEncryptionKeySize)(encryption);
|
|
12
12
|
const { derivedKey } = (0, concat_kdf_1.concatKdf)({
|
|
13
13
|
algorithm: encryption,
|
|
14
|
-
apu,
|
|
15
|
-
apv,
|
|
16
14
|
keyLength,
|
|
17
15
|
sharedSecret,
|
|
18
16
|
});
|
|
@@ -22,7 +20,7 @@ const getDiffieHellmanEncryptionKey = ({ apu, apv, encryption, kryptos, }) => {
|
|
|
22
20
|
};
|
|
23
21
|
};
|
|
24
22
|
exports.getDiffieHellmanEncryptionKey = getDiffieHellmanEncryptionKey;
|
|
25
|
-
const getDiffieHellmanDecryptionKey = ({
|
|
23
|
+
const getDiffieHellmanDecryptionKey = ({ encryption, kryptos, publicEncryptionJwk, }) => {
|
|
26
24
|
if (!kryptos_1.KryptosKit.isEc(kryptos) && !kryptos_1.KryptosKit.isOkp(kryptos)) {
|
|
27
25
|
throw new errors_1.AesError("Invalid kryptos type");
|
|
28
26
|
}
|
|
@@ -33,8 +31,6 @@ const getDiffieHellmanDecryptionKey = ({ apu, apv, encryption, kryptos, publicEn
|
|
|
33
31
|
const keyLength = (0, calculate_content_encryption_key_size_1.calculateContentEncryptionKeySize)(encryption);
|
|
34
32
|
const { derivedKey } = (0, concat_kdf_1.concatKdf)({
|
|
35
33
|
algorithm: encryption,
|
|
36
|
-
apu,
|
|
37
|
-
apv,
|
|
38
34
|
keyLength,
|
|
39
35
|
sharedSecret,
|
|
40
36
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diffie-hellman.js","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/diffie-hellman.ts"],"names":[],"mappings":";;;AAAA,8CAA8C;AAC9C,4CAA2C;AAO3C,
|
|
1
|
+
{"version":3,"file":"diffie-hellman.js","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/diffie-hellman.ts"],"names":[],"mappings":";;;AAAA,8CAA8C;AAC9C,4CAA2C;AAO3C,8GAAuG;AACvG,6DAAyD;AACzD,mDAA8E;AAEvE,MAAM,6BAA6B,GAAG,CAAC,EAC5C,UAAU,EACV,OAAO,GACU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PublicEncryptionJwk } from "../../../types/types";
|
|
3
|
-
import { DecryptCekOptions } from "
|
|
3
|
+
import { DecryptCekOptions } from "../../types/content-encryption-key";
|
|
4
4
|
type GenerateResult = {
|
|
5
5
|
publicEncryptionJwk: PublicEncryptionJwk;
|
|
6
6
|
sharedSecret: Buffer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-secret.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/shared-secret.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAIT,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"shared-secret.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/diffie-hellman/shared-secret.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAIT,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,KAAK,cAAc,GAAG;IACpB,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,4BAA4B,GAAG,IAAI,CACtC,iBAAiB,EACjB,SAAS,GAAG,qBAAqB,CAClC,CAAC;AAoBF,eAAO,MAAM,oBAAoB,GAAI,SAAS,QAAQ,KAAG,cA+BxD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,mCAGnC,4BAA4B,KAAG,MAgCjC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EncryptContentOptions, EncryptContentResult } from "
|
|
1
|
+
import { EncryptContentOptions, EncryptContentResult } from "../types/prepared-encryption";
|
|
2
2
|
export declare const encryptAesContent: (options: EncryptContentOptions) => EncryptContentResult;
|
|
3
3
|
//# sourceMappingURL=encrypt-content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encrypt-content.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/encrypt-content.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"encrypt-content.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/encrypt-content.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAOtC,eAAO,MAAM,iBAAiB,GAC5B,SAAS,qBAAqB,KAC7B,oBAuCF,CAAC"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.encryptAesContent = void 0;
|
|
4
4
|
const crypto_1 = require("crypto");
|
|
5
|
-
const calculate_aes_encryption_1 = require("
|
|
6
|
-
const content_1 = require("
|
|
7
|
-
const auth_tag_1 = require("
|
|
8
|
-
const get_initialisation_vector_1 = require("
|
|
9
|
-
const split_content_encryption_key_1 = require("
|
|
5
|
+
const calculate_aes_encryption_1 = require("./calculate/calculate-aes-encryption");
|
|
6
|
+
const content_1 = require("./content");
|
|
7
|
+
const auth_tag_1 = require("./data/auth-tag");
|
|
8
|
+
const get_initialisation_vector_1 = require("./data/get-initialisation-vector");
|
|
9
|
+
const split_content_encryption_key_1 = require("./data/split-content-encryption-key");
|
|
10
10
|
const encryptAesContent = (options) => {
|
|
11
11
|
const { aad, contentEncryptionKey, data, encryption } = options;
|
|
12
12
|
const { encryptionKey, hashKey } = (0, split_content_encryption_key_1.splitContentEncryptionKey)(encryption, contentEncryptionKey);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encrypt-content.js","sourceRoot":"","sources":["../../../src/internal/utils/encrypt-content.ts"],"names":[],"mappings":";;;AAAA,mCAAqE;AAKrE,
|
|
1
|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AM,OAAO,GAAG,IAAA,wBAAa,EAAC;QAC5B,GAAG;QACH,MAAM;QACN,OAAO;QACP,OAAO;QACP,UAAU;QACV,oBAAoB;KACrB,CAAC,CAAC;IAEH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;AACjE,CAAC,CAAC;AAzCW,QAAA,iBAAiB,qBAyC5B"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.encryptEncoded = void 0;
|
|
4
4
|
const b64_1 = require("@lindorm/b64");
|
|
5
|
-
const aes_header_1 = require("
|
|
6
|
-
const content_1 = require("
|
|
7
|
-
const get_initialisation_vector_1 = require("
|
|
8
|
-
const encrypt_content_1 = require("
|
|
9
|
-
const get_encryption_key_1 = require("
|
|
5
|
+
const aes_header_1 = require("./aes-header");
|
|
6
|
+
const content_1 = require("./content");
|
|
7
|
+
const get_initialisation_vector_1 = require("./data/get-initialisation-vector");
|
|
8
|
+
const encrypt_content_1 = require("./encrypt-content");
|
|
9
|
+
const get_encryption_key_1 = require("./get-key/get-encryption-key");
|
|
10
10
|
const encryptEncoded = (options) => {
|
|
11
11
|
const { data, encryption, kryptos } = options;
|
|
12
12
|
const keyResult = (0, get_encryption_key_1.getEncryptionKey)({ encryption, kryptos });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encrypt-encoded.js","sourceRoot":"","sources":["../../../src/internal/utils/encrypt-encoded.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAGnC,
|
|
1
|
+
{"version":3,"file":"encrypt-encoded.js","sourceRoot":"","sources":["../../../src/internal/utils/encrypt-encoded.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAGnC,6CAA0D;AAC1D,uCAAiD;AACjD,gFAA2E;AAC3E,uDAAsD;AACtD,qEAAgE;AAQzD,MAAM,cAAc,GAAG,CAAC,OAA8B,EAAU,EAAE;IACvE,MAAM,E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AO,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IAGvC,MAAM,SAAS,GAAG,SAAS,CAAC,mBAAmB,EAAE,MAAM,IAAI,CAAC,CAAC;IAC7D,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACrC,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACtC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC3B,IAAI,SAAS,CAAC,mBAAmB,EAAE,CAAC;QAClC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAC9C,CAAC;IAGD,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAGnC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAGtB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEtB,OAAO,SAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AACpD,CAAC,CAAC;AAhEW,QAAA,cAAc,kBAgEzB"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.encryptSerialised = void 0;
|
|
4
4
|
const b64_1 = require("@lindorm/b64");
|
|
5
|
-
const version_1 = require("
|
|
6
|
-
const aes_header_1 = require("
|
|
7
|
-
const content_1 = require("
|
|
8
|
-
const get_initialisation_vector_1 = require("
|
|
9
|
-
const encrypt_content_1 = require("
|
|
10
|
-
const get_encryption_key_1 = require("
|
|
5
|
+
const version_1 = require("../constants/version");
|
|
6
|
+
const aes_header_1 = require("./aes-header");
|
|
7
|
+
const content_1 = require("./content");
|
|
8
|
+
const get_initialisation_vector_1 = require("./data/get-initialisation-vector");
|
|
9
|
+
const encrypt_content_1 = require("./encrypt-content");
|
|
10
|
+
const get_encryption_key_1 = require("./get-key/get-encryption-key");
|
|
11
11
|
const encryptSerialised = (options) => {
|
|
12
12
|
const { data, encryption, kryptos } = options;
|
|
13
13
|
const keyResult = (0, get_encryption_key_1.getEncryptionKey)({ encryption, kryptos });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encrypt-serialised.js","sourceRoot":"","sources":["../../../src/internal/utils/encrypt-serialised.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAEnC,
|
|
1
|
+
{"version":3,"file":"encrypt-serialised.js","sourceRoot":"","sources":["../../../src/internal/utils/encrypt-serialised.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAEnC,kDAA0D;AAG1D,6CAA2E;AAC3E,uCAAiD;AACjD,gFAA2E;AAC3E,uDAAsD;AACtD,qEAAgE;AAQzD,MAAM,iBAAiB,GAAG,CAC/B,OAAiC,EACR,EAAE;IAC3B,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAG9C,MAAM,SAAS,GAAG,IAAA,qCAAgB,EAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IAG5D,MAAM,oBAAoB,GAAG,IAAA,mDAAuB,EAAC,UAAU,CAAC,CAAC;IAGjE,MAAM,WAAW,GAAG,IAAA,8BAAoB,EAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,MAAM,GAAG,IAAA,2BAAc,EAAC;QAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,WAAW;QACX,UAAU;QACV,KAAK,EAAE,OAAO,CAAC,EAAE;QACjB,eAAe,EAAE,SAAS,CAAC,eAAe;QAC1C,SAAS,EAAE,SAAS,CAAC,SAAS;QAC9B,kBAAkB,EAAE,SAAS,CAAC,kBAAkB;QAChD,mBAAmB,EAAE,SAAS,CAAC,mBAAmB;QAClD,mBAAmB,EAAE,SAAS,CAAC,mBAAmB;KACnD,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,IAAA,4BAAe,EAAC,MAAM,CAAC,CAAC;IAG1C,MAAM,GAAG,GAAG,IAAA,uBAAU,EAAC,SAAS,CAAC,CAAC;IAGlC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mCAAiB,EAAC;QAC7C,GAAG;QACH,oBAAoB,EAAE,SAAS,CAAC,oBAAoB;QACpD,IAAI;QACJ,UAAU;QACV,oBAAoB;KACrB,CAAC,CAAC;IAGH,OAAO;QACL,GAAG,EAAE,SAAS,CAAC,mBAAmB;YAChC,CAAC,CAAC,SAAG,CAAC,MAAM,CAAC,SAAS,CAAC,mBAAmB,EAAE,MAAM,CAAC;YACnD,CAAC,CAAC,SAAS;QACb,UAAU,EAAE,SAAG,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;QACvC,MAAM,EAAE,SAAS;QACjB,EAAE,EAAE,SAAG,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC;QAC5C,GAAG,EAAE,SAAG,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;QAChC,CAAC,EAAE,4BAAkB;KACtB,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,iBAAiB,qBAiD5B"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.encryptTokenised = void 0;
|
|
4
4
|
const b64_1 = require("@lindorm/b64");
|
|
5
|
-
const aes_header_1 = require("
|
|
6
|
-
const content_1 = require("
|
|
7
|
-
const get_initialisation_vector_1 = require("
|
|
8
|
-
const encrypt_content_1 = require("
|
|
9
|
-
const get_encryption_key_1 = require("
|
|
5
|
+
const aes_header_1 = require("./aes-header");
|
|
6
|
+
const content_1 = require("./content");
|
|
7
|
+
const get_initialisation_vector_1 = require("./data/get-initialisation-vector");
|
|
8
|
+
const encrypt_content_1 = require("./encrypt-content");
|
|
9
|
+
const get_encryption_key_1 = require("./get-key/get-encryption-key");
|
|
10
10
|
const encryptTokenised = (options) => {
|
|
11
11
|
const { data, encryption, kryptos } = options;
|
|
12
12
|
const keyResult = (0, get_encryption_key_1.getEncryptionKey)({ encryption, kryptos });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encrypt-tokenised.js","sourceRoot":"","sources":["../../../src/internal/utils/encrypt-tokenised.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAGnC,
|
|
1
|
+
{"version":3,"file":"encrypt-tokenised.js","sourceRoot":"","sources":["../../../src/internal/utils/encrypt-tokenised.ts"],"names":[],"mappings":";;;AAAA,sCAAmC;AAGnC,6CAA2E;AAC3E,uCAAiD;AACjD,gFAA2E;AAC3E,uDAAsD;AACtD,qEAAgE;AAQzD,MAAM,gBAAgB,GAAG,CAAC,OAAgC,EAAU,EAAE;IAC3E,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAG9C,MAAM,SAAS,GAAG,IAAA,qCAAgB,EAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IAG5D,MAAM,oBAAoB,GAAG,IAAA,mDAAuB,EAAC,UAAU,CAAC,CAAC;IAGjE,MAAM,WAAW,GAAG,IAAA,8BAAoB,EAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,MAAM,GAAG,IAAA,2BAAc,EAAC;QAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,WAAW;QACX,UAAU;QACV,KAAK,EAAE,OAAO,CAAC,EAAE;QACjB,eAAe,EAAE,SAAS,CAAC,eAAe;QAC1C,SAAS,EAAE,SAAS,CAAC,SAAS;QAC9B,kBAAkB,EAAE,SAAS,CAAC,kBAAkB;QAChD,mBAAmB,EAAE,SAAS,CAAC,mBAAmB;QAClD,mBAAmB,EAAE,SAAS,CAAC,mBAAmB;KACnD,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,IAAA,4BAAe,EAAC,MAAM,CAAC,CAAC;IAG1C,MAAM,GAAG,GAAG,IAAA,uBAAU,EAAC,SAAS,CAAC,CAAC;IAGlC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,mCAAiB,EAAC;QAC7C,GAAG;QACH,oBAAoB,EAAE,SAAS,CAAC,oBAAoB;QACpD,IAAI;QACJ,UAAU;QACV,oBAAoB;KACrB,CAAC,CAAC;IAGH,MAAM,KAAK,GAAG,SAAG,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,SAAG,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,MAAM,aAAa,GAAG,SAAG,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAElD,IAAI,SAAS,CAAC,mBAAmB,EAAE,CAAC;QAClC,MAAM,MAAM,GAAG,SAAG,CAAC,MAAM,CAAC,SAAS,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QACjE,OAAO,OAAO,SAAS,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,IAAI,aAAa,EAAE,CAAC;IAC1E,CAAC;IAED,OAAO,OAAO,SAAS,IAAI,KAAK,IAAI,MAAM,IAAI,aAAa,EAAE,CAAC;AAChE,CAAC,CAAC;AA/CW,QAAA,gBAAgB,oBA+C3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AesContent } from "../../types/content";
|
|
2
2
|
import { AesEncryptionRecord } from "../../types/aes-encryption-data";
|
|
3
|
-
import { PrivateAesDecryptionOptions, PrivateAesEncryptionOptions } from "
|
|
3
|
+
import { PrivateAesDecryptionOptions, PrivateAesEncryptionOptions } from "../types/aes-data";
|
|
4
4
|
export declare const encryptAes: (options: PrivateAesEncryptionOptions) => AesEncryptionRecord;
|
|
5
5
|
export declare const decryptAes: <T extends AesContent = string>(options: PrivateAesDecryptionOptions) => T;
|
|
6
6
|
//# sourceMappingURL=encryption.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryption.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/encryption.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,
|
|
1
|
+
{"version":3,"file":"encryption.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/encryption.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,mBAAmB,CAAC;AAS3B,eAAO,MAAM,UAAU,GAAI,SAAS,2BAA2B,KAAG,mBA4BjE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,UAAU,GAAG,MAAM,EACtD,SAAS,2BAA2B,KACnC,CAkEF,CAAC"}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.decryptAes = exports.encryptAes = void 0;
|
|
4
4
|
const crypto_1 = require("crypto");
|
|
5
|
-
const version_1 = require("
|
|
5
|
+
const version_1 = require("../constants/version");
|
|
6
6
|
const AesError_1 = require("../../errors/AesError");
|
|
7
|
-
const calculate_aes_encryption_1 = require("
|
|
8
|
-
const content_1 = require("
|
|
9
|
-
const auth_tag_1 = require("
|
|
10
|
-
const split_content_encryption_key_1 = require("
|
|
11
|
-
const get_decryption_key_1 = require("
|
|
12
|
-
const get_encryption_key_1 = require("
|
|
13
|
-
const encrypt_content_1 = require("
|
|
7
|
+
const calculate_aes_encryption_1 = require("./calculate/calculate-aes-encryption");
|
|
8
|
+
const content_1 = require("./content");
|
|
9
|
+
const auth_tag_1 = require("./data/auth-tag");
|
|
10
|
+
const split_content_encryption_key_1 = require("./data/split-content-encryption-key");
|
|
11
|
+
const get_decryption_key_1 = require("./get-key/get-decryption-key");
|
|
12
|
+
const get_encryption_key_1 = require("./get-key/get-encryption-key");
|
|
13
|
+
const encrypt_content_1 = require("./encrypt-content");
|
|
14
14
|
const encryptAes = (options) => {
|
|
15
15
|
const { aad, data, encryption = "A256GCM", kryptos } = options;
|
|
16
16
|
const keyResult = (0, get_encryption_key_1.getEncryptionKey)({ encryption, kryptos });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encryption.js","sourceRoot":"","sources":["../../../src/internal/utils/encryption.ts"],"names":[],"mappings":";;;AAAA,mCAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"encryption.js","sourceRoot":"","sources":["../../../src/internal/utils/encryption.ts"],"names":[],"mappings":";;;AAAA,mCAAyE;AACzE,kDAA0D;AAC1D,oDAAiD;AAOjD,mFAA8E;AAC9E,uCAAyC;AACzC,8CAAgD;AAChD,sFAAgF;AAChF,qEAAgE;AAChE,qEAAgE;AAChE,uDAAsD;AAE/C,MAAM,UAAU,GAAG,CAAC,OAAoC,EAAuB,EAAE;IACtF,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,GAAG,SAAS,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAE/D,MAAM,SAAS,GAAG,IAAA,qCAAgB,EAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IAE5D,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,GAAG,IAAA,mCAAiB,EAAC;QAChF,GAAG;QACH,oBAAoB,EAAE,SAAS,CAAC,oBAAoB;QACpD,IAAI;QACJ,UAAU;KACX,CAAC,CAAC;IAEH,OAAO;QACL,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,OAAO;QACP,OAAO;QACP,WAAW;QACX,UAAU;QACV,oBAAoB;QACpB,KAAK,EAAE,OAAO,CAAC,EAAE;QACjB,eAAe,EAAE,SAAS,CAAC,eAAe;QAC1C,SAAS,EAAE,SAAS,CAAC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