$ docker run --rm --name validator-libsodium-usage-r-cran-sodium-r12-sha256-hash-length-2732 -t --mount type=bind,src=/tmp/validator-status-libsodium-usage-r-cran-sodium-r12-sha256-hash-length,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-r-cran-sodium-r12-sha256-hash-length -- bash -c 'PS4=$1; shift; set -x; source "$@"' validator-xtrace '__VALIDATOR_XTRACE__ ' /validator/tests/libsodium/tests/cases/usage/usage-r-cran-sodium-r12-sha256-hash-length.sh no override packages found; continuing with apt originals suppressMessages(library(sodium)) msg <- charToRaw("r-cran-sodium r12 sha256 payload") h1 <- sha256(msg) h2 <- sha256(msg) stopifnot(is.raw(h1)) stopifnot(length(h1) == 32) stopifnot(identical(h1, h2)) other <- charToRaw("r-cran-sodium r12 different payload") stopifnot(!identical(sha256(other), h1)) cat("ok\n") ' ok