crypto_chacha20_ietf function

  1. @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(
  1. Pointer<Uint8> cipher_text,
  2. Pointer<Uint8> plain_text,
  3. int text_size,
  4. Pointer<Uint8> key,
  5. Pointer<Uint8> nonce,
  6. 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,
);