$ docker run --rm --name validator-libsodium-usage-ruby-rbnacl-r13-simplebox-roundtrip-distinct-2732 -t --mount type=bind,src=/tmp/validator-status-libsodium-usage-ruby-rbnacl-r13-simplebox-roundtrip-distinct,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-r13-simplebox-roundtrip-distinct -- bash -c 'PS4=$1; shift; set -x; source "$@"' validator-xtrace '__VALIDATOR_XTRACE__ ' /validator/tests/libsodium/tests/cases/usage/usage-ruby-rbnacl-r13-simplebox-roundtrip-distinct.sh no override packages found; continuing with apt originals key = RbNaCl::Random.random_bytes(32) sb = RbNaCl::SimpleBox.from_secret_key(key) msg = "rbnacl r13 simplebox payload".b ct1 = sb.encrypt(msg) ct2 = sb.encrypt(msg) abort "ct == plain" if ct1 == msg abort "ct1 byteslen wrong" if ct1.bytesize <= msg.bytesize abort "ciphertexts equal" if ct1 == ct2 abort "round1 mismatch" unless sb.decrypt(ct1) == msg abort "round2 mismatch" unless sb.decrypt(ct2) == msg puts "ok" ' ok