one 2.6.20 → 2.6.22
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/android/src/main/java/dev/onejs/onenative/OneNativeCameraManager.kt +24 -0
- package/android/src/main/java/dev/onejs/onenative/OneNativeCameraView.kt +197 -2
- package/cpp/HybridOneCrypto.cpp +327 -1
- package/cpp/HybridOneCrypto.hpp +8 -0
- package/dist/cjs/index.cjs +25 -22
- package/dist/cjs/index.native.cjs +25 -22
- package/dist/cjs/index.native.js +25 -22
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/one.cjs +1 -0
- package/dist/cjs/one.native.cjs +1 -0
- package/dist/cjs/one.native.js +1 -0
- package/dist/cjs/one.native.js.map +1 -1
- package/dist/cjs/platform/camera/index.cjs +3 -2
- package/dist/cjs/platform/camera/index.native.cjs +89 -3
- package/dist/cjs/platform/camera/index.native.js +89 -3
- package/dist/cjs/platform/camera/index.native.js.map +1 -1
- package/dist/cjs/platform/crypto/aes.cjs +259 -0
- package/dist/cjs/platform/crypto/aes.native.cjs +343 -0
- package/dist/cjs/platform/crypto/aes.native.js +345 -0
- package/dist/cjs/platform/crypto/aes.native.js.map +1 -0
- package/dist/cjs/platform/crypto/bytes.cjs +132 -0
- package/dist/cjs/platform/crypto/bytes.native.cjs +175 -0
- package/dist/cjs/platform/crypto/bytes.native.js +177 -0
- package/dist/cjs/platform/crypto/bytes.native.js.map +1 -0
- package/dist/cjs/platform/crypto/digest-api.cjs +65 -0
- package/dist/cjs/platform/crypto/digest-api.native.cjs +69 -0
- package/dist/cjs/platform/crypto/digest-api.native.js +71 -0
- package/dist/cjs/platform/crypto/digest-api.native.js.map +1 -0
- package/dist/cjs/platform/crypto/digest.cjs +26 -15
- package/dist/cjs/platform/crypto/digest.native.cjs +26 -15
- package/dist/cjs/platform/crypto/digest.native.js +26 -15
- package/dist/cjs/platform/crypto/digest.native.js.map +1 -1
- package/dist/cjs/platform/crypto/index.cjs +19 -1
- package/dist/cjs/platform/crypto/index.native.cjs +39 -1
- package/dist/cjs/platform/crypto/index.native.js +39 -1
- package/dist/cjs/platform/crypto/index.native.js.map +1 -1
- package/dist/cjs/platform/crypto/types.cjs +16 -0
- package/dist/cjs/platform/crypto/types.native.cjs +18 -0
- package/dist/cjs/platform/crypto/types.native.js +20 -0
- package/dist/cjs/platform/crypto/types.native.js.map +1 -0
- package/dist/cjs/platform/crypto/web.cjs +73 -0
- package/dist/cjs/platform/extras.cjs +4 -0
- package/dist/cjs/platform/extras.native.cjs +4 -0
- package/dist/cjs/platform/extras.native.js +4 -0
- package/dist/cjs/platform/extras.native.js.map +1 -1
- package/dist/cjs/platform/specs/OneNativeCameraNativeComponent.cjs +37 -21
- package/dist/cjs/platform/specs/OneNativeCameraNativeComponent.native.cjs +37 -21
- package/dist/cjs/platform/specs/OneNativeCameraNativeComponent.native.js +37 -21
- package/dist/cjs/platform/specs/OneNativeCameraNativeComponent.native.js.map +3 -3
- package/dist/cjs/router/router.cjs +4 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/one.mjs +2 -1
- package/dist/esm/one.mjs.map +1 -1
- package/dist/esm/one.native.js +2 -1
- package/dist/esm/one.native.js.map +1 -1
- package/dist/esm/platform/camera/index.mjs +4 -2
- package/dist/esm/platform/camera/index.mjs.map +1 -1
- package/dist/esm/platform/camera/index.native.js +90 -4
- package/dist/esm/platform/camera/index.native.js.map +1 -1
- package/dist/esm/platform/crypto/aes.mjs +236 -0
- package/dist/esm/platform/crypto/aes.mjs.map +1 -0
- package/dist/esm/platform/crypto/aes.native.js +318 -0
- package/dist/esm/platform/crypto/aes.native.js.map +1 -0
- package/dist/esm/platform/crypto/bytes.mjs +104 -0
- package/dist/esm/platform/crypto/bytes.mjs.map +1 -0
- package/dist/esm/platform/crypto/bytes.native.js +145 -0
- package/dist/esm/platform/crypto/bytes.native.js.map +1 -0
- package/dist/esm/platform/crypto/digest-api.mjs +42 -0
- package/dist/esm/platform/crypto/digest-api.mjs.map +1 -0
- package/dist/esm/platform/crypto/digest-api.native.js +44 -0
- package/dist/esm/platform/crypto/digest-api.native.js.map +1 -0
- package/dist/esm/platform/crypto/digest.mjs +23 -15
- package/dist/esm/platform/crypto/digest.mjs.map +1 -1
- package/dist/esm/platform/crypto/digest.native.js +23 -15
- package/dist/esm/platform/crypto/digest.native.js.map +1 -1
- package/dist/esm/platform/crypto/index.mjs +14 -1
- package/dist/esm/platform/crypto/index.mjs.map +1 -1
- package/dist/esm/platform/crypto/index.native.js +34 -1
- package/dist/esm/platform/crypto/index.native.js.map +1 -1
- package/dist/esm/platform/crypto/types.mjs +0 -0
- package/dist/esm/platform/crypto/types.native.js +0 -0
- package/dist/esm/platform/crypto/web.mjs +50 -0
- package/dist/esm/platform/crypto/web.mjs.map +1 -0
- package/dist/esm/platform/extras.mjs +2 -1
- package/dist/esm/platform/extras.native.js +2 -1
- package/dist/esm/platform/specs/OneNativeCameraNativeComponent.mjs +25 -9
- package/dist/esm/platform/specs/OneNativeCameraNativeComponent.mjs.map +3 -3
- package/dist/esm/platform/specs/OneNativeCameraNativeComponent.native.js +25 -9
- package/dist/esm/platform/specs/OneNativeCameraNativeComponent.native.js.map +3 -3
- package/dist/esm/router/router.mjs +5 -2
- package/dist/esm/router/router.mjs.map +1 -1
- package/ios/OneNativeCameraComponentView.mm +28 -0
- package/ios/OneNativeCameraView.swift +163 -0
- package/nitrogen/generated/shared/c++/HybridOneCryptoSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridOneCryptoSpec.hpp +4 -1
- package/package.json +12 -12
- package/src/index.ts +4 -0
- package/src/one.ts +3 -0
- package/src/platform/camera/index.native.tsx +116 -12
- package/src/platform/camera/index.tsx +15 -4
- package/src/platform/camera/types.ts +22 -0
- package/src/platform/crypto/aes.ts +345 -0
- package/src/platform/crypto/bytes.ts +120 -0
- package/src/platform/crypto/digest-api.ts +50 -0
- package/src/platform/crypto/digest.ts +24 -15
- package/src/platform/crypto/index.native.ts +68 -0
- package/src/platform/crypto/index.ts +31 -0
- package/src/platform/crypto/types.ts +64 -0
- package/src/platform/crypto/web.ts +69 -0
- package/src/platform/extras.ts +15 -0
- package/src/platform/index.native.ts +4 -0
- package/src/platform/index.ts +4 -0
- package/src/platform/specs/OneCrypto.nitro.ts +19 -0
- package/src/platform/specs/OneNativeCameraNativeComponent.ts +35 -2
- package/src/router/router.ts +7 -4
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/one.d.ts +2 -1
- package/types/one.d.ts.map +1 -1
- package/types/platform/camera/index.d.ts +3 -3
- package/types/platform/camera/index.d.ts.map +1 -1
- package/types/platform/camera/index.native.d.ts +3 -3
- package/types/platform/camera/index.native.d.ts.map +1 -1
- package/types/platform/camera/types.d.ts +18 -0
- package/types/platform/camera/types.d.ts.map +1 -1
- package/types/platform/crypto/aes.d.ts +211 -0
- package/types/platform/crypto/aes.d.ts.map +1 -0
- package/types/platform/crypto/bytes.d.ts +8 -0
- package/types/platform/crypto/bytes.d.ts.map +1 -0
- package/types/platform/crypto/digest-api.d.ts +9 -0
- package/types/platform/crypto/digest-api.d.ts.map +1 -0
- package/types/platform/crypto/digest.d.ts +5 -0
- package/types/platform/crypto/digest.d.ts.map +1 -1
- package/types/platform/crypto/index.d.ts +127 -0
- package/types/platform/crypto/index.d.ts.map +1 -1
- package/types/platform/crypto/index.native.d.ts +127 -0
- package/types/platform/crypto/index.native.d.ts.map +1 -1
- package/types/platform/crypto/types.d.ts +43 -0
- package/types/platform/crypto/types.d.ts.map +1 -0
- package/types/platform/crypto/web.d.ts +5 -0
- package/types/platform/crypto/web.d.ts.map +1 -0
- package/types/platform/extras.d.ts +2 -0
- package/types/platform/extras.d.ts.map +1 -1
- package/types/platform/index.d.ts +1 -1
- package/types/platform/index.d.ts.map +1 -1
- package/types/platform/index.native.d.ts +1 -1
- package/types/platform/index.native.d.ts.map +1 -1
- package/types/platform/specs/OneCrypto.nitro.d.ts +2 -0
- package/types/platform/specs/OneCrypto.nitro.d.ts.map +1 -1
- package/types/platform/specs/OneNativeCameraNativeComponent.d.ts +18 -2
- package/types/platform/specs/OneNativeCameraNativeComponent.d.ts.map +1 -1
- package/types/router/router.d.ts.map +1 -1
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import type { AESDecryptOptions, AESEncryptOptions, AESKeySize, AESSealedDataConfig, BinaryInput } from './types';
|
|
2
|
+
export type { AESDecryptOptions, AESEncryptOptions, AESKeySize, AESSealedDataConfig, BinaryInput };
|
|
3
|
+
export interface AesEngine {
|
|
4
|
+
seal(key: Uint8Array<ArrayBuffer>, iv: Uint8Array<ArrayBuffer>, plaintext: Uint8Array<ArrayBuffer>, additionalData: Uint8Array<ArrayBuffer> | undefined, tagLength: number): Promise<Uint8Array<ArrayBuffer>>;
|
|
5
|
+
open(key: Uint8Array<ArrayBuffer>, iv: Uint8Array<ArrayBuffer>, ciphertextWithTag: Uint8Array<ArrayBuffer>, additionalData: Uint8Array<ArrayBuffer> | undefined, tagLength: number): Promise<Uint8Array<ArrayBuffer>>;
|
|
6
|
+
random(bytes: Uint8Array<ArrayBuffer>): void;
|
|
7
|
+
}
|
|
8
|
+
export declare function assertTagLength(tagLength: number, verb: string): void;
|
|
9
|
+
export declare function toBytes(input: BinaryInput, verb: string): Uint8Array<ArrayBuffer>;
|
|
10
|
+
type SealedParts = {
|
|
11
|
+
iv: Uint8Array<ArrayBuffer>;
|
|
12
|
+
ciphertext: Uint8Array<ArrayBuffer>;
|
|
13
|
+
tag: Uint8Array<ArrayBuffer>;
|
|
14
|
+
};
|
|
15
|
+
export declare function createAesApi(engine: AesEngine): {
|
|
16
|
+
AESEncryptionKey: {
|
|
17
|
+
new (bytes: Uint8Array<ArrayBuffer>): {
|
|
18
|
+
readonly size: AESKeySize;
|
|
19
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
20
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
21
|
+
};
|
|
22
|
+
generate(size?: AESKeySize): Promise<{
|
|
23
|
+
readonly size: AESKeySize;
|
|
24
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
25
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
26
|
+
}>;
|
|
27
|
+
import(bytes: Uint8Array): Promise<{
|
|
28
|
+
readonly size: AESKeySize;
|
|
29
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
30
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
31
|
+
}>;
|
|
32
|
+
import(encoded: string, encoding: 'hex' | 'base64'): Promise<{
|
|
33
|
+
readonly size: AESKeySize;
|
|
34
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
35
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
AESSealedData: {
|
|
39
|
+
new (parts: SealedParts): {
|
|
40
|
+
get ivSize(): number;
|
|
41
|
+
get tagSize(): number;
|
|
42
|
+
get combinedSize(): number;
|
|
43
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
44
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
45
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
46
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
47
|
+
ciphertext(options: {
|
|
48
|
+
encoding: 'base64';
|
|
49
|
+
includeTag: boolean;
|
|
50
|
+
}): Promise<string>;
|
|
51
|
+
ciphertext(options: {
|
|
52
|
+
encoding: 'bytes';
|
|
53
|
+
includeTag: boolean;
|
|
54
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
55
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
56
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
57
|
+
};
|
|
58
|
+
fromCombined(combined: BinaryInput, config?: AESSealedDataConfig): {
|
|
59
|
+
get ivSize(): number;
|
|
60
|
+
get tagSize(): number;
|
|
61
|
+
get combinedSize(): number;
|
|
62
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
63
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
64
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
65
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
66
|
+
ciphertext(options: {
|
|
67
|
+
encoding: 'base64';
|
|
68
|
+
includeTag: boolean;
|
|
69
|
+
}): Promise<string>;
|
|
70
|
+
ciphertext(options: {
|
|
71
|
+
encoding: 'bytes';
|
|
72
|
+
includeTag: boolean;
|
|
73
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
74
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
75
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
76
|
+
};
|
|
77
|
+
fromParts(iv: BinaryInput, ciphertext: BinaryInput, tag: BinaryInput): {
|
|
78
|
+
get ivSize(): number;
|
|
79
|
+
get tagSize(): number;
|
|
80
|
+
get combinedSize(): number;
|
|
81
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
82
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
83
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
84
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
85
|
+
ciphertext(options: {
|
|
86
|
+
encoding: 'base64';
|
|
87
|
+
includeTag: boolean;
|
|
88
|
+
}): Promise<string>;
|
|
89
|
+
ciphertext(options: {
|
|
90
|
+
encoding: 'bytes';
|
|
91
|
+
includeTag: boolean;
|
|
92
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
93
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
94
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
95
|
+
};
|
|
96
|
+
fromParts(iv: BinaryInput, ciphertextWithTag: BinaryInput, tagLength?: number): {
|
|
97
|
+
get ivSize(): number;
|
|
98
|
+
get tagSize(): number;
|
|
99
|
+
get combinedSize(): number;
|
|
100
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
101
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
102
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
103
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
104
|
+
ciphertext(options: {
|
|
105
|
+
encoding: 'base64';
|
|
106
|
+
includeTag: boolean;
|
|
107
|
+
}): Promise<string>;
|
|
108
|
+
ciphertext(options: {
|
|
109
|
+
encoding: 'bytes';
|
|
110
|
+
includeTag: boolean;
|
|
111
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
112
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
113
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
114
|
+
};
|
|
115
|
+
fromSeal(iv: Uint8Array<ArrayBuffer>, ciphertextWithTag: Uint8Array, tagLength: number): {
|
|
116
|
+
get ivSize(): number;
|
|
117
|
+
get tagSize(): number;
|
|
118
|
+
get combinedSize(): number;
|
|
119
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
120
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
121
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
122
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
123
|
+
ciphertext(options: {
|
|
124
|
+
encoding: 'base64';
|
|
125
|
+
includeTag: boolean;
|
|
126
|
+
}): Promise<string>;
|
|
127
|
+
ciphertext(options: {
|
|
128
|
+
encoding: 'bytes';
|
|
129
|
+
includeTag: boolean;
|
|
130
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
131
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
132
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
aesEncrypt: (plaintext: BinaryInput, key: {
|
|
136
|
+
readonly size: AESKeySize;
|
|
137
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
138
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
139
|
+
}, options?: AESEncryptOptions) => Promise<{
|
|
140
|
+
get ivSize(): number;
|
|
141
|
+
get tagSize(): number;
|
|
142
|
+
get combinedSize(): number;
|
|
143
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
144
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
145
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
146
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
147
|
+
ciphertext(options: {
|
|
148
|
+
encoding: 'base64';
|
|
149
|
+
includeTag: boolean;
|
|
150
|
+
}): Promise<string>;
|
|
151
|
+
ciphertext(options: {
|
|
152
|
+
encoding: 'bytes';
|
|
153
|
+
includeTag: boolean;
|
|
154
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
155
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
156
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
157
|
+
}>;
|
|
158
|
+
aesDecrypt: {
|
|
159
|
+
(sealedData: {
|
|
160
|
+
get ivSize(): number;
|
|
161
|
+
get tagSize(): number;
|
|
162
|
+
get combinedSize(): number;
|
|
163
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
164
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
165
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
166
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
167
|
+
ciphertext(options: {
|
|
168
|
+
encoding: 'base64';
|
|
169
|
+
includeTag: boolean;
|
|
170
|
+
}): Promise<string>;
|
|
171
|
+
ciphertext(options: {
|
|
172
|
+
encoding: 'bytes';
|
|
173
|
+
includeTag: boolean;
|
|
174
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
175
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
176
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
177
|
+
}, key: {
|
|
178
|
+
readonly size: AESKeySize;
|
|
179
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
180
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
181
|
+
}, options: AESDecryptOptions & {
|
|
182
|
+
output: 'base64';
|
|
183
|
+
}): Promise<string>;
|
|
184
|
+
(sealedData: {
|
|
185
|
+
get ivSize(): number;
|
|
186
|
+
get tagSize(): number;
|
|
187
|
+
get combinedSize(): number;
|
|
188
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
189
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
190
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
191
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
192
|
+
ciphertext(options: {
|
|
193
|
+
encoding: 'base64';
|
|
194
|
+
includeTag: boolean;
|
|
195
|
+
}): Promise<string>;
|
|
196
|
+
ciphertext(options: {
|
|
197
|
+
encoding: 'bytes';
|
|
198
|
+
includeTag: boolean;
|
|
199
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
200
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
201
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
202
|
+
}, key: {
|
|
203
|
+
readonly size: AESKeySize;
|
|
204
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
205
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
206
|
+
}, options?: AESDecryptOptions): Promise<Uint8Array<ArrayBuffer>>;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
export type AESEncryptionKey = InstanceType<ReturnType<typeof createAesApi>['AESEncryptionKey']>;
|
|
210
|
+
export type AESSealedData = InstanceType<ReturnType<typeof createAesApi>['AESSealedData']>;
|
|
211
|
+
//# sourceMappingURL=aes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aes.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/aes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,WAAW,EACZ,MAAM,SAAS,CAAA;AAEhB,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAA;AAOlG,MAAM,WAAW,SAAS;IACxB,IAAI,CACF,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC,EAC5B,EAAE,EAAE,UAAU,CAAC,WAAW,CAAC,EAC3B,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,EAClC,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,SAAS,EACnD,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAA;IACnC,IAAI,CACF,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC,EAC5B,EAAE,EAAE,UAAU,CAAC,WAAW,CAAC,EAC3B,iBAAiB,EAAE,UAAU,CAAC,WAAW,CAAC,EAC1C,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,SAAS,EACnD,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAA;IACnC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAA;CAC7C;AAOD,wBAAgB,eAAe,CAAC,SAAS,EAAE,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AO,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;;+BAtGtC,WAAW,WAAU,mBAAmB;;;;;;;;;;;;;;;;;;;sBAmBjD,WAAW,cAAc,WAAW,OAAO,WAAW;;;;;;;;;;;;;;;;;;;sBAErE,WAAW,qBACI,WAAW,cAClB,MAAM;;;;;;;;;;;;;;;;;;;qBA6BA,UAAU,CAAC,WAAW,CAAC,qBAAqB,UAAU,aAAa,MAAM;;;;;;;;;;;;;;;;;;;;4BAqFlF,WAAW;;;;iBAEb,iBAAiB,KACzB,OAAO;;;;;;;;;;;;;;;;;;MAAe;;;;;;;;;;;;;;;;;;;;;;;;oBAqCd,iBAAiB,GAAG;YAAE,MAAM,EAAE,QAAQ,CAAA;SAAE,GAChD,OAAO,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;qBAIN,iBAAiB,GAC1B,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;;EAqBpC;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAA;AAChG,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,eAAe,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function bytesToHex(bytes: Uint8Array): string;
|
|
2
|
+
export declare function hexToBytes(hex: string, verb: string): Uint8Array<ArrayBuffer>;
|
|
3
|
+
export declare function bytesToBase64(bytes: Uint8Array): string;
|
|
4
|
+
export declare function base64ToBytes(base64: string, verb: string): Uint8Array<ArrayBuffer>;
|
|
5
|
+
export declare function utf8Encode(text: string): Uint8Array<ArrayBuffer>;
|
|
6
|
+
export declare function exactBytes(view: Uint8Array): Uint8Array<ArrayBuffer>;
|
|
7
|
+
export declare function concatBytes(parts: Uint8Array[]): Uint8Array<ArrayBuffer>;
|
|
8
|
+
//# sourceMappingURL=bytes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bytes.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/bytes.ts"],"names":[],"mappings":"AAOA,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAIpD;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,CAS7E;AAQD,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAYvD;AAID,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,CAqBnF;AAID,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,CA+BhE;AAID,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC,WAAW,CAAC,CAEpE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CASxE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type DigestSource } from './digest';
|
|
2
|
+
import type { DigestAlgorithm, DigestStringOptions } from './types';
|
|
3
|
+
export declare const DIGEST_ALGORITHMS: readonly DigestAlgorithm[];
|
|
4
|
+
export declare function assertDigestAlgorithm(algorithm: DigestAlgorithm, verb: string): void;
|
|
5
|
+
export declare function createDigestApi(source: DigestSource): {
|
|
6
|
+
digest: (algorithm: DigestAlgorithm, data: BufferSource) => Promise<ArrayBuffer>;
|
|
7
|
+
digestString: (algorithm: DigestAlgorithm, data: string, options?: DigestStringOptions) => Promise<string>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=digest-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digest-api.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/digest-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,UAAU,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKnE,eAAO,MAAM,iBAAiB,EAAE,SAAS,eAAe,EAMvD,CAAA;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAMpF;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY;wBACjB,eAAe,QAAQ,YAAY,KAAG,OAAO,CAAC,WAAW,CAAC;8BAO9E,eAAe,QACpB,MAAM,YACH,mBAAmB,KAC3B,OAAO,CAAC,MAAM,CAAC;EAenB"}
|
|
@@ -6,6 +6,11 @@ type DigestTarget = {
|
|
|
6
6
|
} | null;
|
|
7
7
|
} | null;
|
|
8
8
|
};
|
|
9
|
+
export declare function bufferSourceRange(data: BufferSource, verb: string): {
|
|
10
|
+
buffer: ArrayBuffer;
|
|
11
|
+
offset: number;
|
|
12
|
+
length: number;
|
|
13
|
+
};
|
|
9
14
|
export declare function installDigestPolyfill(source: DigestSource, target?: DigestTarget): void;
|
|
10
15
|
export {};
|
|
11
16
|
//# sourceMappingURL=digest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"digest.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/digest.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG,CACzB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,WAAW,CAAC,CAAA;AAEzB,KAAK,YAAY,GAAG;IAClB,MAAM,CAAC,EAAE;QACP,MAAM,CAAC,EAAE;YAAE,MAAM,CAAC,EAAE,OAAO,CAAA;SAAE,GAAG,IAAI,CAAA;KACrC,GAAG,IAAI,CAAA;CACT,CAAA;
|
|
1
|
+
{"version":3,"file":"digest.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/digest.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG,CACzB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,KACX,OAAO,CAAC,WAAW,CAAC,CAAA;AAEzB,KAAK,YAAY,GAAG;IAClB,MAAM,CAAC,EAAE;QACP,MAAM,CAAC,EAAE;YAAE,MAAM,CAAC,EAAE,OAAO,CAAA;SAAE,GAAG,IAAI,CAAA;KACrC,GAAG,IAAI,CAAA;CACT,CAAA;AAYD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAgBzD;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,MAAM,GAAE,YAAyB,GAChC,IAAI,CAmCN"}
|
|
@@ -1,2 +1,129 @@
|
|
|
1
|
+
import type { Crypto as CryptoApi } from './types';
|
|
2
|
+
export type { AESDecryptOptions, AESEncryptOptions, AESKeySize, AESSealedDataConfig, BinaryInput, CryptoApi, DigestAlgorithm, DigestEncoding, DigestStringOptions, GCMNonceParam, } from './types';
|
|
3
|
+
export type { AESEncryptionKey as AESEncryptionKeyType, AESSealedData as AESSealedDataType } from './aes';
|
|
1
4
|
export declare function installCrypto(): void;
|
|
5
|
+
export declare const AESEncryptionKey: {
|
|
6
|
+
new (bytes: Uint8Array<ArrayBuffer>): {
|
|
7
|
+
readonly size: import("./types").AESKeySize;
|
|
8
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
9
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
10
|
+
};
|
|
11
|
+
generate(size?: import("./types").AESKeySize): Promise<{
|
|
12
|
+
readonly size: import("./types").AESKeySize;
|
|
13
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
14
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
15
|
+
}>;
|
|
16
|
+
import(bytes: Uint8Array): Promise<{
|
|
17
|
+
readonly size: import("./types").AESKeySize;
|
|
18
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
19
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
20
|
+
}>;
|
|
21
|
+
import(encoded: string, encoding: 'hex' | 'base64'): Promise<{
|
|
22
|
+
readonly size: import("./types").AESKeySize;
|
|
23
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
24
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
export declare const AESSealedData: {
|
|
28
|
+
new (parts: {
|
|
29
|
+
iv: Uint8Array<ArrayBuffer>;
|
|
30
|
+
ciphertext: Uint8Array<ArrayBuffer>;
|
|
31
|
+
tag: Uint8Array<ArrayBuffer>;
|
|
32
|
+
}): {
|
|
33
|
+
get ivSize(): number;
|
|
34
|
+
get tagSize(): number;
|
|
35
|
+
get combinedSize(): number;
|
|
36
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
37
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
38
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
39
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
40
|
+
ciphertext(options: {
|
|
41
|
+
encoding: 'base64';
|
|
42
|
+
includeTag: boolean;
|
|
43
|
+
}): Promise<string>;
|
|
44
|
+
ciphertext(options: {
|
|
45
|
+
encoding: 'bytes';
|
|
46
|
+
includeTag: boolean;
|
|
47
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
48
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
49
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
50
|
+
};
|
|
51
|
+
fromCombined(combined: import("./types").BinaryInput, config?: import("./types").AESSealedDataConfig): {
|
|
52
|
+
get ivSize(): number;
|
|
53
|
+
get tagSize(): number;
|
|
54
|
+
get combinedSize(): number;
|
|
55
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
56
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
57
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
58
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
59
|
+
ciphertext(options: {
|
|
60
|
+
encoding: 'base64';
|
|
61
|
+
includeTag: boolean;
|
|
62
|
+
}): Promise<string>;
|
|
63
|
+
ciphertext(options: {
|
|
64
|
+
encoding: 'bytes';
|
|
65
|
+
includeTag: boolean;
|
|
66
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
67
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
68
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
69
|
+
};
|
|
70
|
+
fromParts(iv: import("./types").BinaryInput, ciphertext: import("./types").BinaryInput, tag: import("./types").BinaryInput): {
|
|
71
|
+
get ivSize(): number;
|
|
72
|
+
get tagSize(): number;
|
|
73
|
+
get combinedSize(): number;
|
|
74
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
75
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
76
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
77
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
78
|
+
ciphertext(options: {
|
|
79
|
+
encoding: 'base64';
|
|
80
|
+
includeTag: boolean;
|
|
81
|
+
}): Promise<string>;
|
|
82
|
+
ciphertext(options: {
|
|
83
|
+
encoding: 'bytes';
|
|
84
|
+
includeTag: boolean;
|
|
85
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
86
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
87
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
88
|
+
};
|
|
89
|
+
fromParts(iv: import("./types").BinaryInput, ciphertextWithTag: import("./types").BinaryInput, tagLength?: number): {
|
|
90
|
+
get ivSize(): number;
|
|
91
|
+
get tagSize(): number;
|
|
92
|
+
get combinedSize(): number;
|
|
93
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
94
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
95
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
96
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
97
|
+
ciphertext(options: {
|
|
98
|
+
encoding: 'base64';
|
|
99
|
+
includeTag: boolean;
|
|
100
|
+
}): Promise<string>;
|
|
101
|
+
ciphertext(options: {
|
|
102
|
+
encoding: 'bytes';
|
|
103
|
+
includeTag: boolean;
|
|
104
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
105
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
106
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
107
|
+
};
|
|
108
|
+
fromSeal(iv: Uint8Array<ArrayBuffer>, ciphertextWithTag: Uint8Array, tagLength: number): {
|
|
109
|
+
get ivSize(): number;
|
|
110
|
+
get tagSize(): number;
|
|
111
|
+
get combinedSize(): number;
|
|
112
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
113
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
114
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
115
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
116
|
+
ciphertext(options: {
|
|
117
|
+
encoding: 'base64';
|
|
118
|
+
includeTag: boolean;
|
|
119
|
+
}): Promise<string>;
|
|
120
|
+
ciphertext(options: {
|
|
121
|
+
encoding: 'bytes';
|
|
122
|
+
includeTag: boolean;
|
|
123
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
124
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
125
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
export declare const Crypto: CryptoApi;
|
|
2
129
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAGlD,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,GACd,MAAM,SAAS,CAAA;AAChB,YAAY,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAsBzG,wBAAgB,aAAa,IAAI,IAAI,CAEpC;AAKD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAAuB,CAAA;AACpD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA;AAE9C,eAAO,MAAM,MAAM,EAAE,SAKnB,CAAA"}
|
|
@@ -1,2 +1,129 @@
|
|
|
1
|
+
import type { Crypto as CryptoApi } from './types';
|
|
2
|
+
export type { AESDecryptOptions, AESEncryptOptions, AESKeySize, AESSealedDataConfig, BinaryInput, CryptoApi, DigestAlgorithm, DigestEncoding, DigestStringOptions, GCMNonceParam, } from './types';
|
|
3
|
+
export type { AESEncryptionKey as AESEncryptionKeyType, AESSealedData as AESSealedDataType } from './aes';
|
|
4
|
+
export declare const AESEncryptionKey: {
|
|
5
|
+
new (bytes: Uint8Array<ArrayBuffer>): {
|
|
6
|
+
readonly size: import("./types").AESKeySize;
|
|
7
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
8
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
9
|
+
};
|
|
10
|
+
generate(size?: import("./types").AESKeySize): Promise<{
|
|
11
|
+
readonly size: import("./types").AESKeySize;
|
|
12
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
13
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
14
|
+
}>;
|
|
15
|
+
import(bytes: Uint8Array): Promise<{
|
|
16
|
+
readonly size: import("./types").AESKeySize;
|
|
17
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
18
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
19
|
+
}>;
|
|
20
|
+
import(encoded: string, encoding: 'hex' | 'base64'): Promise<{
|
|
21
|
+
readonly size: import("./types").AESKeySize;
|
|
22
|
+
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
23
|
+
encoded(encoding: 'hex' | 'base64'): Promise<string>;
|
|
24
|
+
}>;
|
|
25
|
+
};
|
|
26
|
+
export declare const AESSealedData: {
|
|
27
|
+
new (parts: {
|
|
28
|
+
iv: Uint8Array<ArrayBuffer>;
|
|
29
|
+
ciphertext: Uint8Array<ArrayBuffer>;
|
|
30
|
+
tag: Uint8Array<ArrayBuffer>;
|
|
31
|
+
}): {
|
|
32
|
+
get ivSize(): number;
|
|
33
|
+
get tagSize(): number;
|
|
34
|
+
get combinedSize(): number;
|
|
35
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
36
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
37
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
38
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
39
|
+
ciphertext(options: {
|
|
40
|
+
encoding: 'base64';
|
|
41
|
+
includeTag: boolean;
|
|
42
|
+
}): Promise<string>;
|
|
43
|
+
ciphertext(options: {
|
|
44
|
+
encoding: 'bytes';
|
|
45
|
+
includeTag: boolean;
|
|
46
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
47
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
48
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
49
|
+
};
|
|
50
|
+
fromCombined(combined: import("./types").BinaryInput, config?: import("./types").AESSealedDataConfig): {
|
|
51
|
+
get ivSize(): number;
|
|
52
|
+
get tagSize(): number;
|
|
53
|
+
get combinedSize(): number;
|
|
54
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
55
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
56
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
57
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
58
|
+
ciphertext(options: {
|
|
59
|
+
encoding: 'base64';
|
|
60
|
+
includeTag: boolean;
|
|
61
|
+
}): Promise<string>;
|
|
62
|
+
ciphertext(options: {
|
|
63
|
+
encoding: 'bytes';
|
|
64
|
+
includeTag: boolean;
|
|
65
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
66
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
67
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
68
|
+
};
|
|
69
|
+
fromParts(iv: import("./types").BinaryInput, ciphertext: import("./types").BinaryInput, tag: import("./types").BinaryInput): {
|
|
70
|
+
get ivSize(): number;
|
|
71
|
+
get tagSize(): number;
|
|
72
|
+
get combinedSize(): number;
|
|
73
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
74
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
75
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
76
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
77
|
+
ciphertext(options: {
|
|
78
|
+
encoding: 'base64';
|
|
79
|
+
includeTag: boolean;
|
|
80
|
+
}): Promise<string>;
|
|
81
|
+
ciphertext(options: {
|
|
82
|
+
encoding: 'bytes';
|
|
83
|
+
includeTag: boolean;
|
|
84
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
85
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
86
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
87
|
+
};
|
|
88
|
+
fromParts(iv: import("./types").BinaryInput, ciphertextWithTag: import("./types").BinaryInput, tagLength?: number): {
|
|
89
|
+
get ivSize(): number;
|
|
90
|
+
get tagSize(): number;
|
|
91
|
+
get combinedSize(): number;
|
|
92
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
93
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
94
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
95
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
96
|
+
ciphertext(options: {
|
|
97
|
+
encoding: 'base64';
|
|
98
|
+
includeTag: boolean;
|
|
99
|
+
}): Promise<string>;
|
|
100
|
+
ciphertext(options: {
|
|
101
|
+
encoding: 'bytes';
|
|
102
|
+
includeTag: boolean;
|
|
103
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
104
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
105
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
106
|
+
};
|
|
107
|
+
fromSeal(iv: Uint8Array<ArrayBuffer>, ciphertextWithTag: Uint8Array, tagLength: number): {
|
|
108
|
+
get ivSize(): number;
|
|
109
|
+
get tagSize(): number;
|
|
110
|
+
get combinedSize(): number;
|
|
111
|
+
iv(encoding: 'base64'): Promise<string>;
|
|
112
|
+
iv(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
113
|
+
tag(encoding: 'base64'): Promise<string>;
|
|
114
|
+
tag(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
115
|
+
ciphertext(options: {
|
|
116
|
+
encoding: 'base64';
|
|
117
|
+
includeTag: boolean;
|
|
118
|
+
}): Promise<string>;
|
|
119
|
+
ciphertext(options: {
|
|
120
|
+
encoding: 'bytes';
|
|
121
|
+
includeTag: boolean;
|
|
122
|
+
}): Promise<Uint8Array<ArrayBuffer>>;
|
|
123
|
+
combined(encoding: 'base64'): Promise<string>;
|
|
124
|
+
combined(encoding?: 'bytes'): Promise<Uint8Array<ArrayBuffer>>;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
export declare const Crypto: CryptoApi;
|
|
1
128
|
export declare function installCrypto(): void;
|
|
2
129
|
//# sourceMappingURL=index.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/index.native.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/index.native.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAElD,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,GACd,MAAM,SAAS,CAAA;AAChB,YAAY,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAiEzG,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAAuB,CAAA;AACpD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA;AAE9C,eAAO,MAAM,MAAM,EAAE,SAKnB,CAAA;AAEF,wBAAgB,aAAa,IAAI,IAAI,CAQpC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type DigestAlgorithm = 'MD5' | 'SHA-1' | 'SHA-256' | 'SHA-384' | 'SHA-512';
|
|
2
|
+
export type DigestEncoding = 'hex' | 'base64';
|
|
3
|
+
export interface DigestStringOptions {
|
|
4
|
+
encoding?: DigestEncoding;
|
|
5
|
+
}
|
|
6
|
+
/** string input to the AES api is base64, as in expo-crypto */
|
|
7
|
+
export type BinaryInput = string | Uint8Array | ArrayBuffer;
|
|
8
|
+
export type AESKeySize = 128 | 192 | 256;
|
|
9
|
+
export type GCMNonceParam = {
|
|
10
|
+
length?: number;
|
|
11
|
+
} | {
|
|
12
|
+
bytes: BinaryInput;
|
|
13
|
+
};
|
|
14
|
+
export interface AESEncryptOptions {
|
|
15
|
+
additionalData?: BinaryInput;
|
|
16
|
+
nonce?: GCMNonceParam;
|
|
17
|
+
/**
|
|
18
|
+
* authentication tag length in bytes: 16, 15, 14, 13, 12, 8 or 4. on apple
|
|
19
|
+
* platforms the tag is always 16 bytes, as in expo-crypto.
|
|
20
|
+
*/
|
|
21
|
+
tagLength?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface AESDecryptOptions {
|
|
24
|
+
additionalData?: BinaryInput;
|
|
25
|
+
output?: 'base64' | 'bytes';
|
|
26
|
+
}
|
|
27
|
+
export interface AESSealedDataConfig {
|
|
28
|
+
ivLength?: number;
|
|
29
|
+
tagLength?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface Crypto {
|
|
32
|
+
/** digest of bytes, as an ArrayBuffer */
|
|
33
|
+
digest(algorithm: DigestAlgorithm, data: BufferSource): Promise<ArrayBuffer>;
|
|
34
|
+
/** digest of a utf-8 string, hex by default */
|
|
35
|
+
digestString(algorithm: DigestAlgorithm, data: string, options?: DigestStringOptions): Promise<string>;
|
|
36
|
+
aesEncrypt(plaintext: BinaryInput, key: import('./aes').AESEncryptionKey, options?: AESEncryptOptions): Promise<import('./aes').AESSealedData>;
|
|
37
|
+
aesDecrypt(sealedData: import('./aes').AESSealedData, key: import('./aes').AESEncryptionKey, options: AESDecryptOptions & {
|
|
38
|
+
output: 'base64';
|
|
39
|
+
}): Promise<string>;
|
|
40
|
+
aesDecrypt(sealedData: import('./aes').AESSealedData, key: import('./aes').AESEncryptionKey, options?: AESDecryptOptions): Promise<Uint8Array<ArrayBuffer>>;
|
|
41
|
+
}
|
|
42
|
+
export type CryptoApi = Crypto;
|
|
43
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;AACjF,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,CAAA;AAE7C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,cAAc,CAAA;CAC1B;AAED,+DAA+D;AAC/D,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,CAAA;AAE3D,MAAM,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAExC,MAAM,MAAM,aAAa,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,CAAA;AAExE,MAA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S,GAAG,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/platform/crypto/web.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAe5C,eAAO,MAAM,eAAe,EAAE,YAK7B,CAAA;AASD,eAAO,MAAM,YAAY,EAAE,SAsC1B,CAAA"}
|
|
@@ -29,6 +29,8 @@ export { Updates } from './updates';
|
|
|
29
29
|
export type { UpdateAsset, UpdateManifest, UpdateMetadataValue, UpdatesCheckResult, UpdatesFetchResult, UpdatesStagedSubscription, } from './updates';
|
|
30
30
|
export { Network, useNetworkState } from './network';
|
|
31
31
|
export type { NetworkState, NetworkStateSubscription, NetworkStateType, } from './network';
|
|
32
|
+
export { AESEncryptionKey, AESSealedData, Crypto } from './crypto';
|
|
33
|
+
export type { AESDecryptOptions, AESEncryptionKeyType, AESEncryptOptions, AESKeySize, AESSealedDataConfig, AESSealedDataType, BinaryInput, CryptoApi, DigestAlgorithm, DigestEncoding, DigestStringOptions, GCMNonceParam, } from './crypto';
|
|
32
34
|
export { Localization, useCalendars, useLocales } from './localization';
|
|
33
35
|
export type { Calendar, Locale, LocalizationApi } from './localization';
|
|
34
36
|
export { SecureStore } from './secure-store';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extras.d.ts","sourceRoot":"","sources":["../../src/platform/extras.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACzC,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAElE,OAAO,EACL,oBAAoB,E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BAAmB,EACnB,aAAa,GACd,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACvE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,YAAY,EACV,SAAS,EACT,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EACV,eAAe,EACf,WAAW,EACX,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,GACnB,MAAM,UAAU,CAAA"}
|
|
@@ -36,7 +36,7 @@ export { FileSystem } from './file-system/index';
|
|
|
36
36
|
export type { FileDirectories, FileEncoding, FileEntry, FileInfo, } from './file-system/index';
|
|
37
37
|
export { Audio } from './audio/index';
|
|
38
38
|
export { CameraView } from './camera/index';
|
|
39
|
-
export type { CameraCode, CameraCodeType, CameraFacing, CameraState, CameraViewProps, } from './camera/index';
|
|
39
|
+
export type { CameraCapturedPicture, CameraCode, CameraCodeType, CameraFacing, CameraFlashMode, CameraPictureOptions, CameraState, CameraViewProps, CameraViewRef, } from './camera/index';
|
|
40
40
|
export type { AudioPlaybackState, AudioPlaybackStatus, AudioPlayer, AudioPlayerOptions, AudioPlayerSubscription, AudioRecordingPermission, AudioRecordingResult, AudioRecordingState, AudioRecordingStatus, AudioSource, AudioSourceObject, AudioStatus, PitchCorrectionQuality, } from './audio/index';
|
|
41
41
|
export { Share } from './share/index';
|
|
42
42
|
export { Open } from './open/index';
|