UNPKG

react-native-quick-crypto

Version:

A fast implementation of Node's `crypto` module written in C/C++ JSI

6 lines 580 B
import { SecretKeyObject, type SecretKeyType, type AesKeyGenParams } from './keys'; export type KeyGenCallback = (err: Error | undefined, key?: SecretKeyObject) => void; export declare const generateKeyPromise: (type: SecretKeyType, options: AesKeyGenParams) => Promise<[Error | undefined, SecretKeyObject | undefined]>; export declare const generateKey: (type: SecretKeyType, options: AesKeyGenParams, callback: KeyGenCallback) => void; export declare const generateKeySync: (type: SecretKeyType, options: AesKeyGenParams) => SecretKeyObject; //# sourceMappingURL=keygen.d.ts.map