libsodium-jni icon indicating copy to clipboard operation
libsodium-jni copied to clipboard

xchacha20poly1305 clen int type issue

Open franziskuskiefer opened this issue 3 years ago • 0 comments

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).

franziskuskiefer avatar Sep 08 '20 07:09 franziskuskiefer