Projects
Eulaceura:Factory
secGear
_service:obs_scm:0070-sign-tool-add-invalid-par...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0070-sign-tool-add-invalid-param-verify.patch of Package secGear
From f0cd1f169bec254162c7e7d1781aabc68879fb9c Mon Sep 17 00:00:00 2001 From: houmingyong <houmingyong@huawei.com> Date: Thu, 8 Jun 2023 20:51:22 +0800 Subject: [PATCH] sign tool add invalid param verify --- tools/sign_tool/sign_tool.sh | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/tools/sign_tool/sign_tool.sh b/tools/sign_tool/sign_tool.sh index 74e2514..5bf7fbb 100755 --- a/tools/sign_tool/sign_tool.sh +++ b/tools/sign_tool/sign_tool.sh @@ -17,9 +17,11 @@ print_help() { echo "-k <file> private key required for single-step method. Note: single-step method is only for the debug mode," echo "-k <file> plaintext private key does exist in the production environment." echo "-m <file> additional config_cloud.ini for trustzone." - echo "-o <file> output parameter, the sign command outputs signed enclave, the digest command outputs signing" - echo " material, the dump command outputs data containing the SIGStruct metadata for the SGX signed" - echo " enclave, which is submitted to Intel for whitelisting." + echo "-o <file> output parameter. " + echo " sgx: the sign command outputs signed enclave, the digest command outputs signing" + echo " material, the dump command outputs data containing the SIGStruct metadata for the SGX signed" + echo " enclave, which is submitted to Intel for whitelisting." + echo " trustzone: /output_path/uuid.sec, uuid must be the same as the value of gpd.ta.appID in manifest.txt" echo "-p <file> signing server public key certificate, required for sgx two-step method." echo "-s <file> the signature value required for two-step method, this parameter is empty to indicate" echo " single-step method." @@ -116,6 +118,22 @@ itrustee_start_sign() { echo "Error: missing additional config_cloud.ini file for signing iTrustee enclave" exit 1 fi + if [ -z $CONFIG_FILE ]; then + echo "Error: missing basic config file for signing iTrustee enclave" + exit 1 + fi + if [ ! -e $CONFIG_FILE ]; then + echo "No such file or directory" + exit 1 + fi + if [ -z $IN_ENCLAVE ]; then + echo "Error: missing enclave file" + exit 1 + fi + if [ ! -e $IN_ENCLAVE ]; then + echo "Error: No such file or directory" + exit 1 + fi if [ "${CMD}"x == "sign"x ]; then IN_PATH=$(dirname ${CONFIG_FILE}) -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2