//#region src/derive-key/deriveKeysFromKey.d.ts /** * Derives a symmetric key from the base key and context string * * @param context - The context string. * The context string should be hardcoded, globally unique, and application-specific. * @param baseKey - The base key (NOT PASSWORD!) * @returns The derived secret key */ declare function deriveSymmetricKeyFromContext(context: string, baseKey: Uint8Array): Uint8Array; /** * Derives a symmetric key from two keys * * @param key1 - The 32-bytes key * @param key2 - The 32-bytes key * @returns The derived secret key */ declare function deriveSymmetricKeyFromTwoKeys(key1: Uint8Array, key2: Uint8Array): Uint8Array; //#endregion //#region src/derive-key/deriveKeysFromMnemonic.d.ts /** * Derives encryption key from the user's mnemonic and context string * * @param mnemonic - The user's mnemonic (machine-generated with secure PRNG) * @param context - The context string. * The context string should be hardcoded, globally unique, and application-specific. * @returns The symmetric key for protecting database */ declare const deriveKeyFromMnemonic: (mnemonic: string, context: string) => Promise; //#endregion export { deriveKeyFromMnemonic, deriveSymmetricKeyFromContext, deriveSymmetricKeyFromTwoKeys }; //# sourceMappingURL=derive-key.d.mts.map