UNPKG

react-native-quick-crypto

Version:

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

22 lines 988 B
import type { BinaryLike } from '../utils'; import { KeyObject, CryptoKey } from './classes'; interface PublicCipherOptions { key: BinaryLike | KeyObject | CryptoKey; padding?: number; oaepHash?: string; oaepLabel?: BinaryLike; } type PublicCipherInput = BinaryLike | KeyObject | CryptoKey | PublicCipherOptions; interface PrivateCipherOptions { key: BinaryLike | KeyObject | CryptoKey; padding?: number; oaepHash?: string; oaepLabel?: BinaryLike; } type PrivateCipherInput = BinaryLike | KeyObject | CryptoKey | PrivateCipherOptions; export declare function publicEncrypt(key: PublicCipherInput, buffer: BinaryLike): Buffer; export declare function publicDecrypt(key: PublicCipherInput, buffer: BinaryLike): Buffer; export declare function privateEncrypt(key: PrivateCipherInput, buffer: BinaryLike): Buffer; export declare function privateDecrypt(key: PrivateCipherInput, buffer: BinaryLike): Buffer; export {}; //# sourceMappingURL=publicCipher.d.ts.map