Home
last modified time | relevance | path

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

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/key/
DKeyPairTools.java97 public static KeyPair generateKeyPair(String algorithm, int keySize) { in generateKeyPair() argument
98 if (algorithm.equalsIgnoreCase(ECC_INPUT)) { in generateKeyPair()
99 algorithm = ECC; in generateKeyPair()
101 if (algorithm.equalsIgnoreCase(RSA)) { in generateKeyPair()
104 } else if (algorithm.equalsIgnoreCase(ECC)) { in generateKeyPair()
108 … CustomException.throwException(ERROR.NOT_SUPPORT_ERROR, "Not support algorithm: " + algorithm); in generateKeyPair()
112 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(algorithm); in generateKeyPair()
139 public static PublicKey stringToPublicKey(String algorithm, String keyString) { in stringToPublicKey() argument
143 result = KeyFactory.getInstance(algorithm).generatePublic(spec); in stringToPublicKey()
158 public static PrivateKey stringToPrivateKey(String algorithm, String keyString) { in stringToPrivateKey() argument
[all …]
/developtools/hdc/scripts/
Dhdc_hash_gen.py21 algorithm = None variable
32 global algorithm
33 algorithm = hashlib.sha256()
37 algorithm.update(fd.read(1024 * 1024))
39 algorithm.update(fd.read())
57 context = "{}{}{}".format("#define HDC_MSG_HASH \"", str(algorithm.hexdigest())[0:16], "\"")
/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.md78 …├── -signAlg # Signature algorithm, which can be SHA256withECDSA or SHA384withECDSA. It …
102 …├── -signAlg # Signature algorithm, which can be SHA256withECDSA or SHA384withECDSA. It …
141 ├── -keyAlg # Key algorithm, which can be RSA or ECC. It is mandatory.
152 …├── -signAlg # Signature algorithm, which can be SHA256withRSA, SHA384withRSA, SHA256wit…
162 … ├── -keyAlg # Key algorithm, which can be RSA or ECC. It is mandatory.
169 …├── -signAlg # Signature algorithm, which can be SHA256withRSA, SHA384with…
234 …├── -signAlg # Signature algorithm, which can be SHA256withRSA, SHA384with…
253 …├── -signAlg # Signature algorithm, which can be SHA256withECDSA or SHA384withECDSA. It is…
275 …├── -signAlg # Signature algorithm, which can be SHA256withECDSA or SHA384withECDSA. It is m…
/developtools/integration_verification/tools/deps_guard/rules/NO-Depends-On-HDI/
DREADME.md15 description = "example algorithm";
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/
DVerifyHelper.java78 …d verifySignature(X509Certificate cert, byte[] signedData, byte[] unsignedData, String algorithm) { in verifySignature() argument
80 Signature signature = Signature.getInstance(algorithm); in verifySignature()