match libsodium function signature