crypto_aead_unlock function
- @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(
- Pointer<Uint8> plain_text,
- Pointer<Uint8> mac,
- Pointer<Uint8> key,
- Pointer<Uint8> nonce,
- Pointer<Uint8> ad,
- int ad_size,
- Pointer<Uint8> cipher_text,
- 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,
);