import { CipherString, EncryptedObject, SymmetricCryptoKey } from "./classes"; import { CryptoEngine } from "./engines"; /** * This class is only intended to be used by the EncryptedWallet class */ export default class CryptoHelper { #private; constructor(engine: CryptoEngine); compare(a: ArrayBuffer, b: ArrayBuffer): Promise; aesEncrypt(data: ArrayBuffer | Uint8Array, key: SymmetricCryptoKey): Promise; aesDecrypt(data: ArrayBuffer | Uint8Array, iv: ArrayBuffer | Uint8Array, mac: ArrayBuffer | Uint8Array, key: SymmetricCryptoKey): Promise; hkdfExpand(prk: ArrayBuffer, info: Uint8Array, size: number): Promise; pbkdf2(password: string | ArrayBuffer, salt: string | ArrayBuffer, iterations: number): Promise; makeKey(password: string, email: string): Promise; decrypt(cipherString: CipherString, key: SymmetricCryptoKey): Promise; generateMnemonic(strength?: number): Promise; /** * Generates a base64 hash based on the provided data * Should be used to calculate a device ID for the wallet based on the mnemonic */ getDeviceId(data: string): Promise; } //# sourceMappingURL=CryptoHelper.d.ts.map