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.
@@ -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
  }
@@ -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
  };
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ddan-js",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "ddan-js",