ddan-js 4.1.3 → 4.1.4
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/bin/ddan-browser.js +1 -1
- package/bin/ddan-browser.mjs +1 -1
- package/bin/ddan-js.js +1 -1
- package/bin/ddan-js.mjs +1 -1
- package/bin/modules/browser/ecdh.d.ts +2 -2
- package/bin/modules/cipher.d.ts +2 -2
- package/bin/modules/crypto/cipher.d.ts +2 -2
- package/bin/modules/node/cipher-web.d.ts +2 -2
- package/bin/modules/node/index.d.ts +2 -2
- package/bin/tiny/node.d.ts +2 -2
- package/bin/tiny/web.d.ts +2 -2
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ export default class Ecdh {
|
|
|
17
17
|
deriveSharedBits(publicKeyBase64: string): Promise<ArrayBuffer | null>;
|
|
18
18
|
deriveShareBase64(publicKeyBase64: string): Promise<string>;
|
|
19
19
|
encode(data: string, iv?: string): Promise<string>;
|
|
20
|
-
encodeiv(data: string, iv?: string): Promise<string>;
|
|
20
|
+
encodeiv(data: string, iv?: string, ivFirst?: boolean): Promise<string>;
|
|
21
21
|
decode(encrypted: string, iv?: string): Promise<string>;
|
|
22
|
-
decodeiv(encrypted: string): Promise<string>;
|
|
22
|
+
decodeiv(encrypted: string, ivFirst?: boolean): Promise<string>;
|
|
23
23
|
}
|
package/bin/modules/cipher.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
aesGcmEncrypt: (text: string, aesKey: CryptoKey) => Promise<string>;
|
|
3
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey) => Promise<string>;
|
|
2
|
+
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
3
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst: boolean) => Promise<string>;
|
|
4
4
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
5
5
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
aesGcmEncrypt: (subtle: any, plaintext: string, aesKey: CryptoKey) => Promise<string>;
|
|
3
|
-
aesGcmDecrypt: (subtle: any, encryptedBase64: string, aesKey: CryptoKey) => Promise<string>;
|
|
2
|
+
aesGcmEncrypt: (subtle: any, plaintext: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
3
|
+
aesGcmDecrypt: (subtle: any, encryptedBase64: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
4
4
|
aesCryptoKey: (subtle: any, sharedBase64: string) => Promise<CryptoKey | null>;
|
|
5
5
|
aesCryptoKeyFromHkdf: (subtle: any, sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
aesGcmEncrypt: (text: string, aesKey: CryptoKey) => Promise<string>;
|
|
3
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey) => Promise<string>;
|
|
2
|
+
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst: boolean) => Promise<string>;
|
|
3
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst: boolean) => Promise<string>;
|
|
4
4
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
5
5
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
6
6
|
};
|
|
@@ -18,8 +18,8 @@ declare const _default: {
|
|
|
18
18
|
decode: (encryptedBase64: string) => Promise<string>;
|
|
19
19
|
};
|
|
20
20
|
cipher: {
|
|
21
|
-
aesGcmEncrypt: (text: string, aesKey: CryptoKey) => Promise<string>;
|
|
22
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey) => Promise<string>;
|
|
21
|
+
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst: boolean) => Promise<string>;
|
|
22
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst: boolean) => Promise<string>;
|
|
23
23
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
24
24
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
25
25
|
};
|
package/bin/tiny/node.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ declare const dNode: {
|
|
|
15
15
|
decode: (encryptedBase64: string) => Promise<string>;
|
|
16
16
|
};
|
|
17
17
|
cipher: {
|
|
18
|
-
aesGcmEncrypt: (text: string, aesKey: CryptoKey) => Promise<string>;
|
|
19
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey) => Promise<string>;
|
|
18
|
+
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst: boolean) => Promise<string>;
|
|
19
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst: boolean) => Promise<string>;
|
|
20
20
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
21
21
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
22
22
|
};
|
package/bin/tiny/web.d.ts
CHANGED
|
@@ -182,8 +182,8 @@ declare const dWeb: {
|
|
|
182
182
|
decode: (encryptedBase64: string) => Promise<string>;
|
|
183
183
|
};
|
|
184
184
|
cipher: {
|
|
185
|
-
aesGcmEncrypt: (text: string, aesKey: CryptoKey) => Promise<string>;
|
|
186
|
-
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey) => Promise<string>;
|
|
185
|
+
aesGcmEncrypt: (text: string, aesKey: CryptoKey, ivFirst?: boolean) => Promise<string>;
|
|
186
|
+
aesGcmDecrypt: (encryptedBase64: string, aesKey: CryptoKey, ivFirst: boolean) => Promise<string>;
|
|
187
187
|
aesCryptoKey: (sharedBase64: string) => Promise<CryptoKey | null>;
|
|
188
188
|
aesCryptoKeyFromHkdf: (sharedBase64: string, saltBase64: string, infoBase64: string) => Promise<CryptoKey | null>;
|
|
189
189
|
};
|