crypto_chacha20_ietf function
- @Native<Uint32 Function(Pointer<Uint8>, Pointer<Uint8>, Size, Pointer<Uint8>, Pointer<Uint8>, Uint32)>(ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Size, ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Uint32)>()
int
crypto_chacha20_ietf(
- Pointer<Uint8> cipher_text,
- Pointer<Uint8> plain_text,
- int text_size,
- Pointer<Uint8> key,
- Pointer<Uint8> nonce,
- int ctr,
)
Implementation
@ffi.Native<
ffi.Uint32 Function(
ffi.Pointer<ffi.Uint8>,
ffi.Pointer<ffi.Uint8>,
ffi.Size,
ffi.Pointer<ffi.Uint8>,
ffi.Pointer<ffi.Uint8>,
ffi.Uint32,
)
>()
external int crypto_chacha20_ietf(
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,
);