crypto_aead_unlock function

  1. @Native<Int Function(Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>, Pointer<Uint8>, Size, Pointer<Uint8>, Size)>(ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Pointer<ffi.Uint8>, ffi.Size, ffi.Pointer<ffi.Uint8>, ffi.Size)>()
int crypto_aead_unlock(
  1. Pointer<Uint8> plain_text,
  2. Pointer<Uint8> mac,
  3. Pointer<Uint8> key,
  4. Pointer<Uint8> nonce,
  5. Pointer<Uint8> ad,
  6. int ad_size,
  7. Pointer<Uint8> cipher_text,
  8. int text_size,
)

Implementation

@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<ffi.Uint8>,
    ffi.Pointer<ffi.Uint8>,
    ffi.Pointer<ffi.Uint8>,
    ffi.Pointer<ffi.Uint8>,
    ffi.Pointer<ffi.Uint8>,
    ffi.Size,
    ffi.Pointer<ffi.Uint8>,
    ffi.Size,
  )
>()
external int crypto_aead_unlock(
  ffi.Pointer<ffi.Uint8> plain_text,
  ffi.Pointer<ffi.Uint8> mac,
  ffi.Pointer<ffi.Uint8> key,
  ffi.Pointer<ffi.Uint8> nonce,
  ffi.Pointer<ffi.Uint8> ad,
  int ad_size,
  ffi.Pointer<ffi.Uint8> cipher_text,
  int text_size,
);