libsodium-jni
libsodium-jni copied to clipboard
xchacha20poly1305 clen int type issue
The output length in the xchacha20poly1305
functions such as crypto_aead_xchacha20poly1305_ietf_encrypt
is an unsigned long long
in C (64-bit) but an int (signed 32-bit) here in the wrapper. This can lead to overflows in the output length (unlikely with this interface, but still an issue).