crypto_aead_lock function

  1. @Native<Void 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)>()
void crypto_aead_lock(
  1. Pointer<Uint8> cipher_text,
  2. Pointer<Uint8> mac,
  3. Pointer<Uint8> key,
  4. Pointer<Uint8> nonce,
  5. Pointer<Uint8> ad,
  6. int ad_size,
  7. Pointer<Uint8> plain_text,
  8. int text_size,
)

Authenticated encryption

Implementation

@ffi.Native<
  ffi.Void 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 void crypto_aead_lock(
  ffi.Pointer<ffi.Uint8> cipher_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> plain_text,
  int text_size,
);