$ docker run --rm --name validator-libsodium-usage-r-cran-sodium-data-encrypt-roundtrip-2732 -t --mount type=bind,src=/tmp/validator-status-libsodium-usage-r-cran-sodium-data-encrypt-roundtrip,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-data-encrypt-roundtrip -- bash -c 'PS4=$1; shift; set -x; source "$@"' validator-xtrace '__VALIDATOR_XTRACE__ ' /validator/tests/libsodium/tests/cases/usage/usage-r-cran-sodium-data-encrypt-roundtrip.sh no override packages found; continuing with apt originals suppressMessages(library(sodium)) key <- as.raw(rep(0x07, 32)) nonce <- as.raw(rep(0x09, 24)) msg <- charToRaw("r-cran-sodium roundtrip payload") ct <- data_encrypt(msg, key, nonce) stopifnot(length(ct) == length(msg) + 16) pt <- data_decrypt(ct, key, nonce) stopifnot(identical(pt, msg)) cat("ok", length(pt), "\n") ' ok 31