UNPKG

@hazae41/chacha20poly1305

Version:

ChaCha20Poly1305 adapter for WebAssembly and JS implementations

12 lines (9 loc) 293 B
import { Option, Nullable } from '@hazae41/option'; import { Cipher } from './abstract.js'; declare function get(): Option<Adapter>; declare function set(value: Nullable<Adapter>): void; interface Adapter { readonly Cipher: typeof Cipher; } export { get, set }; export type { Adapter };