Providing a 24 byte (192 bit) nonce to Sodium::Cipher::XChaCha20.new() raises an error of:
nonce must be 8 bytes, got 24 (ArgumentError)
Unlike chacha20 which uses an 8 byte nonce xchacha20 uses 24 bytes, but the constant inside the class is incorrectly set to 8 bytes.
This will also be the case with XSalsa20.
Providing a 24 byte (192 bit) nonce to Sodium::Cipher::XChaCha20.new() raises an error of:
Unlike chacha20 which uses an 8 byte nonce xchacha20 uses 24 bytes, but the constant inside the class is incorrectly set to 8 bytes. This will also be the case with XSalsa20.