isLibsodiumSuccessCode

Functions returning an int return 0 on success and -1 to indicate an error.

This will throw an IllegalStateException if the return code is invalid/unknown.