crypto_aead_chacha20poly1305_encrypt method

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

Implementation

int crypto_aead_chacha20poly1305_encrypt(
  ffi.Pointer<ffi.UnsignedChar> c,
  ffi.Pointer<ffi.UnsignedLongLong> clen_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(
    c,
    clen_p,
    m,
    mlen,
    ad,
    adlen,
    nsec,
    npub,
    k,
  );
}