UNPKG

react-native-quick-crypto

Version:

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

22 lines (18 loc) 591 B
import type { HybridObject } from 'react-native-nitro-modules'; export type TurboShakeVariant = 'TurboSHAKE128' | 'TurboSHAKE256'; export type KangarooTwelveVariant = 'KT128' | 'KT256'; export interface TurboShake extends HybridObject<{ ios: 'c++'; android: 'c++' }> { turboShake( variant: TurboShakeVariant, domainSeparation: number, outputLength: number, data: ArrayBuffer, ): Promise<ArrayBuffer>; kangarooTwelve( variant: KangarooTwelveVariant, outputLength: number, data: ArrayBuffer, customization?: ArrayBuffer, ): Promise<ArrayBuffer>; }