Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 4 of 4) 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/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
35 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
55 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
70 -keyAlg : key algorithm, required fields, including RSA/ECC;
71 …y size, required fields, the size of the RSA algorithm is 2048/3072/4096, and the size of the ECC
77 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
96 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
116 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
134 …-signAlg : signature algorithm, required fields, including SHA256withRSA/SHA384withRSA/SHA256withE…
[all …]
/developtools/hapsigner/
DREADME.md61 …├── -signAlg # Signature algorithm, which can be SHA256withECDSA or SHA384withECDSA. It …
85 …├── -signAlg # Signature algorithm, which can be SHA256withECDSA or SHA384withECDSA. It …
124 ├── -keyAlg # Key algorithm, which can be RSA or ECC. It is mandatory.
135 …├── -signAlg # Signature algorithm, which can be SHA256withRSA, SHA384withRSA, SHA256wit…
145 … ├── -keyAlg # Key algorithm, which can be RSA or ECC. It is mandatory.
152 …├── -signAlg # Signature algorithm, which can be SHA256withRSA, SHA384with…
217 …├── -signAlg # Signature algorithm, which can be SHA256withRSA, SHA384with…
236 …├── -signAlg # Signature algorithm, which can be SHA256withECDSA or SHA384withECDSA. It is…
258 …├── -signAlg # Signature algorithm, which can be SHA256withECDSA or SHA384withECDSA. It is m…
/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()