@secrecy/lib 1.86.2-fix-crypto.1 → 1.86.2-fix-md5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,12 +5,8 @@ export declare function derivePassword(password: string, salt: Uint8Array<ArrayB
5
5
  * `version (1 byte) || salt || nonce || secretbox(key)`.
6
6
  */
7
7
  export declare function encryptKeyWithPassword(key: Uint8Array, password: string): Uint8Array;
8
- /**
9
- * Unwrap a data key produced by `encryptKeyWithPassword`. Also reads the
10
- * legacy format (`nonce || secretbox(key)`) whose salt was derived from the
11
- * password and the plaintext md5, hence `legacyMd5`.
12
- */
13
- export declare function decryptKeyWithPassword(wrapped: Uint8Array, password: string, legacyMd5: string): Uint8Array;
8
+ /** Unwrap a data key produced by `encryptKeyWithPassword`. */
9
+ export declare function decryptKeyWithPassword(wrapped: Uint8Array, password: string): Uint8Array;
14
10
  export declare function encryptName(name: string, nameKey: string): Promise<string>;
15
11
  export declare function generateAndEncryptNameAndKey(args: {
16
12
  name: string;