UNPKG

react-native-quick-crypto

Version:

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

13 lines (11 loc) 365 B
import type { CipherOrWrapMode, DigestAlgorithm } from '../keys'; import type { RSAKeyVariant } from '../rsa'; import type { KeyObjectHandle } from './webcrypto'; export type RSACipher = ( mode: CipherOrWrapMode, handle: KeyObjectHandle, data: ArrayBuffer, variant: RSAKeyVariant, hash: DigestAlgorithm, label?: ArrayBuffer, ) => Promise<ArrayBuffer>;