From e071bbf9c764170d1267120b7418909491ea45eb Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Mon, 7 Nov 2022 09:32:05 +0000 Subject: [PATCH] rpi-eeprom-digest: Only require openssl + xxd for RSA operations --- tools/rpi-eeprom-digest | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/rpi-eeprom-digest b/tools/rpi-eeprom-digest index 1a2dbe8..e5072e0 100755 --- a/tools/rpi-eeprom-digest +++ b/tools/rpi-eeprom-digest @@ -26,13 +26,15 @@ checkDependencies() { die "sha256sum not found. Try installing the coreutilities package." fi - if ! command -v openssl > /dev/null; then - die "openssl not found. Try installing the openssl package." - fi - - if ! command -v xxd > /dev/null; then - die "xxd not found. Try installing the xxd package." - fi + if [ -n "${KEY}" ] || [ "${VERIFY}" = 1 ]; then + if ! command -v openssl > /dev/null; then + die "openssl not found. Try installing the openssl package." + fi + + if ! command -v xxd > /dev/null; then + die "xxd not found. Try installing the xxd package." + fi + fi } usage() { -- libgit2 0.21.4