crypto_chacha20_x function
- @Native<Uint64 Function(Pointer<Uint8>, Pointer<Uint8>, Size, Pointer<Uint8>, Pointer<Uint8>, Uint64)>(ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Size, ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Uint64)>()
int
crypto_chacha20_x(
- Pointer<Uint8> cipher_text,
- Pointer<Uint8> plain_text,
- int text_size,
- Pointer<Uint8> key,
- Pointer<Uint8> nonce,
- int ctr,
)
Implementation
@ffi.Native<
ffi.Uint64 Function(
ffi.Pointer<ffi.Uint8>,
ffi.Pointer<ffi.Uint8>,
ffi.Size,
ffi.Pointer<ffi.Uint8>,
ffi.Pointer<ffi.Uint8>,
ffi.Uint64,
)
>()
external int crypto_chacha20_x(
ffi.Pointer<ffi.Uint8> cipher_text,
ffi.Pointer<ffi.Uint8> plain_text,
int text_size,
ffi.Pointer<ffi.Uint8> key,
ffi.Pointer<ffi.Uint8> nonce,
int ctr,
);