crypto_aead_chacha20poly1305_encrypt_detached method

int crypto_aead_chacha20poly1305_encrypt_detached(
  1. Pointer<UnsignedChar> c,
  2. Pointer<UnsignedChar> mac,
  3. Pointer<UnsignedLongLong> maclen_p,
  4. Pointer<UnsignedChar> m,
  5. int mlen,
  6. Pointer<UnsignedChar> ad,
  7. int adlen,
  8. Pointer<UnsignedChar> nsec,
  9. Pointer<UnsignedChar> npub,
  10. Pointer<UnsignedChar> k,
)

Implementation

int crypto_aead_chacha20poly1305_encrypt_detached(
  ffi.Pointer<ffi.UnsignedChar> c,
  ffi.Pointer<ffi.UnsignedChar> mac,
  ffi.Pointer<ffi.UnsignedLongLong> maclen_p,
  ffi.Pointer<ffi.UnsignedChar> m,
  int mlen,
  ffi.Pointer<ffi.UnsignedChar> ad,
  int adlen,
  ffi.Pointer<ffi.UnsignedChar> nsec,
  ffi.Pointer<ffi.UnsignedChar> npub,
  ffi.Pointer<ffi.UnsignedChar> k,
) {
  return _crypto_aead_chacha20poly1305_encrypt_detached(
    c,
    mac,
    maclen_p,
    m,
    mlen,
    ad,
    adlen,
    nsec,
    npub,
    k,
  );
}