react-native-quick-crypto
Version:
A fast implementation of Node's `crypto` module written in C/C++ JSI
12 lines • 787 B
TypeScript
import { Buffer } from '@craftzdog/react-native-buffer';
import type { BinaryLike } from './utils';
import type { HashAlgorithm, SubtleAlgorithm } from './utils';
import type { CryptoKey } from './keys';
type Password = BinaryLike;
type Salt = BinaryLike;
type Pbkdf2Callback = (err: Error | null, derivedKey?: Buffer) => void;
export declare function pbkdf2(password: Password, salt: Salt, iterations: number, keylen: number, digest: string, callback: Pbkdf2Callback): void;
export declare function pbkdf2Sync(password: Password, salt: Salt, iterations: number, keylen: number, digest?: HashAlgorithm): Buffer;
export declare function pbkdf2DeriveBits(algorithm: SubtleAlgorithm, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
export {};
//# sourceMappingURL=pbkdf2.d.ts.map