Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 23 of 23) sorted by relevance

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DKeyPairTools.java95 public static KeyPair generateKeyPair(String algorithm, int keySize) { in generateKeyPair() argument
96 if (algorithm == null) { in generateKeyPair()
100 String alg = algorithm; in generateKeyPair()
146 public static PublicKey stringToPublicKey(String algorithm, String keyString) { in stringToPublicKey() argument
150 result = KeyFactory.getInstance(algorithm).generatePublic(spec); in stringToPublicKey()
166 public static PrivateKey stringToPrivateKey(String algorithm, String keyString) { in stringToPrivateKey() argument
170 result = KeyFactory.getInstance(algorithm).generatePrivate(spec); in stringToPrivateKey()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/utils/
DDigestUtils.java35 …public static byte[] computeDigest(byte[] inputContentArray, String algorithm) throws NoSuchAlgori… in computeDigest() argument
36 MessageDigest md = MessageDigest.getInstance(algorithm); in computeDigest()
/developtools/hapsigner/hapsigntool_cpp_test/fuzztest/generate_csr/generatecsr001_fuzzer/
Dgeneratecsr001_fuzzer.cpp26 std::string algorithm = "ECC"; in DoSomethingInterestingWithMyAPI() local
30 EVP_PKEY* keyPair = keyStoreHelper.GenerateKeyPair(algorithm, keySize); in DoSomethingInterestingWithMyAPI()
/developtools/hapsigner/hapsigntool_cpp_test/unittest/codeSigning/fsverity/
Dfs_verity_generator_test.cpp164 uint8_t algorithm = fsVerityGenerator.GetFsVerityHashAlgorithm(); variable
166 EXPECT_NE(algorithm, 0);
/developtools/hapsigner/hapsigntool_cpp_test/unittest/generateCA/
Dgenerate_general_ca_test.cpp847 std::string algorithm = "ECC"; variable
855 (*params)["algorithm"] = algorithm;
859 EVP_PKEY* keyPair = keyStoreHelper->GenerateKeyPair(algorithm, keySize);
880 std::string algorithm = "ECC"; variable
889 (*params)["algorithm"] = algorithm;
894 EVP_PKEY* keyPair = keyStoreHelper->GenerateKeyPair(algorithm, keySize);
916 std::string algorithm = "ECC"; variable
924 (*params)["algorithm"] = algorithm;
928 EVP_PKEY* keyPair = keyStoreHelper->GenerateKeyPair(algorithm, keySize);
950 std::string algorithm = "ECC"; variable
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool/src/main/resources/
Dhelp.txt22 -keyAlg : key algorithm, required fields, including RSA/ECC;
23 …y size, required fields, the size of the RSA algorithm is 2048/3072/4096, and the size of the ECC
36 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
57 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
75 -keyAlg : key algorithm, required fields, including RSA/ECC;
76 …y size, required fields, the size of the RSA algorithm is 2048/3072/4096, and the size of the ECC
82 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
104 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
127 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
148 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
[all …]
/developtools/hapsigner/
DREADME.md84 …├── -signAlg # Signing algorithm, which can be SHA256withECDSA or SHA384withECDSA. It is…
108 …├── -signAlg # Signing algorithm, which can be SHA256withECDSA or SHA384withECDSA. It is…
151 ├── -keyAlg # Key algorithm, which can be RSA or ECC. It is mandatory.
165 …├── -signAlg # Signing algorithm, which can be SHA256withRSA, SHA384withRSA, SHA256withE…
178 ├── -keyAlg # Key algorithm, which can be RSA or ECC. It is mandatory.
185 …├── -signAlg # Signing algorithm, which can be SHA256withRSA, SHA384withRSA, SH…
206 …├── -signAlg # Signing algorithm, which can be SHA256withECDSA or SHA384wi…
229 …├── -signAlg # Signing algorithm, which can be SHA256withECDSA or SHA384wi…
259 …├── -signAlg # Signing algorithm, which can be SHA256withRSA, SHA384withR…
281 …├── -signAlg # Signing algorithm, which can be SHA256withECDSA or SHA384withECDSA. It is m…
[all …]
/developtools/integration_verification/tools/deps_guard/rules/NO-Depends-On-HDI/
DREADME.md15 description = "example algorithm";
/developtools/hapsigner/hapsigntool_cpp/codesigning/fsverity/include/
Dmerkle_tree_builder.h51 void SetAlgorithm(const std::string& algorithm);
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/
DBcSignedDataGenerator.java155 …private byte[] computeDigest(byte[] unsignedDataDigest, String algorithm) throws CodeSignException… in computeDigest() argument
158 digest = DigestUtils.computeDigest(unsignedDataDigest, algorithm); in computeDigest()
160 … throw new CodeSignException(CodeSignErrMsg.ALGORITHM_NOT_SUPPORT_ERROR.toString(algorithm), e); in computeDigest()
/developtools/hapsigner/binary_sign_tool/codesigning/fsverity/include/
Dmerkle_tree_builder.h56 void SetAlgorithm(const std::string& algorithm);
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/
DVerifyHelper.java86 …d verifySignature(X509Certificate cert, byte[] signedData, byte[] unsignedData, String algorithm) { in verifySignature() argument
88 Signature signature = Signature.getInstance(algorithm); in verifySignature()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/fsverity/
DMerkleTreeBuilder.java69 private void setAlgorithm(String algorithm) { in setAlgorithm() argument
70 this.mAlgorithm = algorithm; in setAlgorithm()
/developtools/ace_ets2bundle/compiler/src/interop/src/fast_build/ark_compiler/
Dutils.ts332 export function calculateFileHash(filePath: string, algorithm: string = 'sha256'): string {
334 const hash = crypto.createHash(algorithm);
/developtools/hapsigner/hapsigntool_cpp/utils/include/
Dkey_store_helper.h63 EVP_PKEY* GenerateKeyPair(const std::string& algorithm, int keySize);
/developtools/hapsigner/hapsigntool_cpp_test/unittest/generateCsr/
Dgenerate_csr_test.cpp404 std::string algorithm = "ECC"; variable
408 EVP_PKEY* keyPair = keyStoreHelper->GenerateKeyPair(algorithm, keySize);
443 std::string algorithm = "ECC"; variable
447 EVP_PKEY* keyPair = keyStoreHelper->GenerateKeyPair(algorithm, keySize);
/developtools/hapsigner/binary_sign_tool/codesigning/fsverity/src/
Dmerkle_tree_builder.cpp30 void MerkleTreeBuilder::SetAlgorithm(const std::string& algorithm) in SetAlgorithm() argument
32 mAlgorithm = algorithm; in SetAlgorithm()
/developtools/hapsigner/hapsigntool_cpp/codesigning/fsverity/src/
Dmerkle_tree_builder.cpp30 void MerkleTreeBuilder::SetAlgorithm(const std::string& algorithm) in SetAlgorithm() argument
32 mAlgorithm = algorithm; in SetAlgorithm()
/developtools/hapsigner/hapsigntool_cpp/profile/src/
Dpkcs7_data.cpp76 if (dig == NULL || dig->algorithm == NULL || in SetSignerInfoSignAlgor()
77 (hashNid = OBJ_obj2nid(dig->algorithm)) == NID_undef || in SetSignerInfoSignAlgor()
643 int numberID = OBJ_obj2nid(info->digest_alg->algorithm); in Pkcs7DataFinalSignAttr()
/developtools/hapsigner/hapsigntool_cpp_test/unittest/hapVerify/
Dhap_signer_block_utils_test.cpp106 if (dig == NULL || dig->algorithm == NULL || in SetTestSignerInfoSignAlgor()
107 (hashNid = OBJ_obj2nid(dig->algorithm)) == NID_undef || in SetTestSignerInfoSignAlgor()
/developtools/hapsigner/hapsigntool_cpp/utils/src/
Dkey_store_helper.cpp508 EVP_PKEY* KeyStoreHelper::GenerateKeyPair(const std::string& algorithm, int keySize) in GenerateKeyPair() argument
510 if (algorithm.empty() || (0 == keySize)) { in GenerateKeyPair()
/developtools/smartperf_host/smartperf_host/trace_streamer/prebuilts/patch_hiperf/
Dhiviewdfx_faultloggerd.patch200 -#include <algorithm>
949 +#include <algorithm>
/developtools/profiler/hiebpf/include/
Dvmlinux.h114542 u8 algorithm[4]; member
130936 uint8_t algorithm; member