diff --git a/xtest/sdk/java/cli.sh b/xtest/sdk/java/cli.sh index 6457ed36..97f92ea5 100755 --- a/xtest/sdk/java/cli.sh +++ b/xtest/sdk/java/cli.sh @@ -91,7 +91,12 @@ if [ "$1" == "supports" ]; then java -jar "$SCRIPT_DIR"/cmdline.jar help encrypt | grep with-target-mode exit $? ;; - + mechanism-rsa-4096) + # rsa4096 support in > 0.12.0 + set -o pipefail + java -jar "$SCRIPT_DIR"/cmdline.jar --version | jq -re .version | awk -F. '{ if ($1 > 0 || ($1 == 0 && $2 >= 13) || ($1 == 0 && $2 == 12 && $3 >= 1)) exit 0; else exit 1; }' + exit $? + ;; *) echo "Unknown feature: $2" exit 2 diff --git a/xtest/tdfs.py b/xtest/tdfs.py index 09227ed0..f16c0c8b 100644 --- a/xtest/tdfs.py +++ b/xtest/tdfs.py @@ -459,8 +459,6 @@ def _uncached_supports(self, feature: feature_type) -> bool: return True case ("mechanism-rsa-4096", "go"): return True - case ("mechanism-rsa-4096", "java"): - return False case ("mechanism-ec-curves-384-521", "go"): return True case ("mechanism-ec-curves-384-521", ("java" | "js")):