$ docker run --rm --name validator-libsodium-usage-ruby-rbnacl-blake2b-empty-input-2732 -t --mount type=bind,src=/tmp/validator-status-libsodium-usage-ruby-rbnacl-blake2b-empty-input,dst=/validator/status validator-libsodium-shared bash -lc 'set -euo pipefail /validator/tests/_shared/install_override_debs.sh exec /validator/tests/_shared/run_library_tests.sh "$@"' validator-testcase libsodium usage-ruby-rbnacl-blake2b-empty-input -- bash -c 'PS4=$1; shift; set -x; source "$@"' validator-xtrace '__VALIDATOR_XTRACE__ ' /validator/tests/libsodium/tests/cases/usage/usage-ruby-rbnacl-blake2b-empty-input.sh no override packages found; continuing with apt originals empty = "".b digest = RbNaCl::Hash.blake2b(empty) raise "unexpected digest length: #{digest.bytesize}" unless digest.bytesize == 64 expected = "786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419" \ "d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce" got = digest.unpack1("H*") raise "blake2b empty digest mismatch: got #{got}" unless got == expected again = RbNaCl::Hash.blake2b(empty) raise "blake2b not deterministic for empty input" unless again == digest puts got ' 786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce