/** * @license * @preserve * * KeeeX SAS Public code * https://keeex.me * Copyright 2013-2023 KeeeX All Rights Reserved. * * These computer program listings and specifications, herein, * are and remain the property of KeeeX SAS. The intellectual * and technical concepts herein are proprietary to KeeeX SAS * and may be covered by EU and foreign patents, * patents in process, trade secrets and copyright law. * * These listings are published as a way to provide third party * with the ability to process KeeeX data. * As such, support for public inquiries is limited. * They are provided "as-is", without warrany of any kind. * * They shall not be reproduced or copied or used in whole or * in part as the basis for manufacture or sale of items unless * prior written permission is obtained from KeeeX SAS. * * For a license agreement, please contact: * * */ import { type Algorithms as CipherAlgorithms } from "./ciphertypes.js"; import { type Algorithms as DigestAlgorithms } from "./digesttypes.js"; import type { CryptoKey } from "./keystypes.js"; export { CryptoKey }; /** * Generate a random CryptoKey. * * @public */ export declare const generateCryptoKey: (algorithm: CipherAlgorithms, keyLen: number) => Promise; /** * Transform raw data into a CryptoKey instance. * * @public */ export declare const importCryptoKey: (algorithm: CipherAlgorithms, keyData: Uint8Array) => Promise; /** * Create a CryptoKey from a low-entropy input using PBKDF2. * * @public */ export declare const deriveKey: (data: string, salt: Uint8Array, digestAlgorithm: DigestAlgorithms, rounds: number, targetAlgorithm: CipherAlgorithms, keyLen: number) => Promise; /** * Derive a fixed-size buffer from a low entropy source using PBKDF2. * * @public */ export declare const deriveKeyRaw: (data: string, salt: Uint8Array, digestAlgorithm: DigestAlgorithms, rounds: number, outLen: number) => Promise; export { type KeysProvider } from "./keystypes.js";