crypto_chacha20_djb function
Unauthenticated stream cipher. Don't forget to add authentication.
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_djb(
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,
);