154aa6d63Sopenharmony_ci/* 254aa6d63Sopenharmony_ci * Copyright (c) 2024-2024 Huawei Device Co., Ltd. 354aa6d63Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 454aa6d63Sopenharmony_ci * you may not use this file except in compliance with the License. 554aa6d63Sopenharmony_ci * You may obtain a copy of the License at 654aa6d63Sopenharmony_ci * 754aa6d63Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 854aa6d63Sopenharmony_ci * 954aa6d63Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1054aa6d63Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1154aa6d63Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1254aa6d63Sopenharmony_ci * See the License for the specific language governing permissions and 1354aa6d63Sopenharmony_ci * limitations under the License. 1454aa6d63Sopenharmony_ci */ 1554aa6d63Sopenharmony_ci#include "param_constants.h" 1654aa6d63Sopenharmony_ci 1754aa6d63Sopenharmony_cinamespace OHOS { 1854aa6d63Sopenharmony_cinamespace SignatureTools { 1954aa6d63Sopenharmony_ciconst std::string ParamConstants::HAP_SIG_SCHEME_V256_DIGEST_ALGORITHM = "SHA-256"; 2054aa6d63Sopenharmony_ciconst std::string ParamConstants::HAP_SIG_SCHEME_V384_DIGEST_ALGORITHM = "SHA-384"; 2154aa6d63Sopenharmony_ciconst std::string ParamConstants::HAP_SIG_SCHEME_V512_DIGEST_ALGORITHM = "SHA-512"; 2254aa6d63Sopenharmony_ciconst std::string ParamConstants::HAP_SIG_ALGORITHM_SHA256_ECDSA = "SHA256withECDSA"; 2354aa6d63Sopenharmony_ciconst std::string ParamConstants::HAP_SIG_ALGORITHM_SHA384_ECDSA = "SHA384withECDSA"; 2454aa6d63Sopenharmony_ciconst std::string ParamConstants::HAP_SIG_ALGORITHM_SHA512_ECDSA = "SHA512withECDSA"; 2554aa6d63Sopenharmony_ciconst std::string ParamConstants::ALIGNMENT = "4"; 2654aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_SIGN_MODE = "mode"; 2754aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_CRL = "crl"; 2854aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_PROPERTY = "property"; 2954aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_PROFILE = "profileFile"; 3054aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_PROFILE_JSON_CONTENT = "profileContent"; 3154aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_PROOF = "proof"; 3254aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_ALIGNMENT = "a"; 3354aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_PRIVATE_KEY = "keyAlias"; 3454aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_INPUT_FILE = "inFile"; 3554aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_OUTPUT_FILE = "outFile"; 3654aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_SIGANTURE_ALG = "signAlg"; 3754aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_PROFILE_SIGNED = "profileSigned"; 3854aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_BASIC_COMPATIBLE_VERSION = "compatibleVersion"; 3954aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_REMOTE_SERVER = "signServer"; 4054aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_REMOTE_USERNAME = "username"; 4154aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_REMOTE_USERPWD = "userPwd"; 4254aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_REMOTE_CODE = "password"; 4354aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_REMOTE_ONLINEAUTHMODE = "onlineAuthMode"; 4454aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_REMOTE_SIGNERPLUGIN = "signerPlugin"; 4554aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_LOCAL_JKS_KEYSTORE = "keystoreFile"; 4654aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_LOCAL_JKS_KEYSTORE_CODE = "keystorePwd"; 4754aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_LOCAL_JKS_KEYALIAS_CODE = "keyPwd"; 4854aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_LOCAL_PUBLIC_CERT = "appCertFile"; 4954aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_VERIFY_CERTCHAIN_FILE = "outCertChain"; 5054aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_VERIFY_PROFILE_FILE = "outProfile"; 5154aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_VERIFY_PROOF_FILE = "outproof"; 5254aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_VERIFY_PROPERTY_FILE = "outproperty"; 5354aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_RESIGN_CONFIG_FILE = "resignconfig"; 5454aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_IN_FORM = "inForm"; 5554aa6d63Sopenharmony_ciconst std::string ParamConstants::PARAM_SIGN_CODE = "signCode"; 5654aa6d63Sopenharmony_ciconst std::string ParamConstants::DISABLE_SIGN_CODE = "0"; 5754aa6d63Sopenharmony_ciconst std::string ParamConstants::ENABLE_SIGN_CODE = "1"; 5854aa6d63Sopenharmony_ci} // namespace SignatureTools 5954aa6d63Sopenharmony_ci} // namespace OHOS