react-native-quick-crypto
Version:
A fast implementation of Node's `crypto` module written in C/C++ JSI
15 lines (13 loc) • 407 B
text/typescript
import type { AESKeyVariant } from '../aes';
import type { CipherOrWrapMode } from '../keys';
import type { KeyObjectHandle } from './webcrypto';
export type AESCipher = (
mode: CipherOrWrapMode,
handle: KeyObjectHandle,
data: ArrayBuffer,
variant: AESKeyVariant,
iv_or_counter?: ArrayBuffer,
length?: number,
authTag?: ArrayBuffer,
additionalData?: ArrayBuffer,
) => Promise<ArrayBuffer>;