Home
last modified time | relevance | path

Searched refs:publicKey (Results 1 – 5 of 5) sorted by relevance

/developtools/hdc/src/common/
Dauth.cpp33 bool PostUIConfirm(string publicKey) in PostUIConfirm() argument
68 int RSA2RSAPublicKey(RSA *rsa, RSAPublicKey *publicKey) in RSA2RSAPublicKey() argument
82 publicKey->exponent = BN_get_word(rsa->e); in RSA2RSAPublicKey()
87 publicKey->exponent = BN_get_word(RSA_get0_e(rsa)); in RSA2RSAPublicKey()
91 publicKey->exponent = BN_get_word(rsa->e); in RSA2RSAPublicKey()
106 publicKey->wordModulusSize = RSANUMWORDS; in RSA2RSAPublicKey()
107 publicKey->rsaN0inv = 0 - BN_get_word(rsaN0inv); in RSA2RSAPublicKey()
110 publicKey->rr[i] = BN_get_word(rsaRem); in RSA2RSAPublicKey()
112 publicKey->modulus[i] = BN_get_word(rsaRem); in RSA2RSAPublicKey()
152 RSAPublicKey publicKey; in WritePublicKeyfile() local
[all …]
Dauth.h39 bool PostUIConfirm(string publicKey);
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
DHapVerify.java404 PublicKey publicKey = cert.getPublicKey(); in printCert() local
405 … LOGGER.info("Key: {}, key length: {} bits", publicKey.getAlgorithm(), getKeySize(publicKey)); in printCert()
409 private int getKeySize(PublicKey publicKey) { in getKeySize() argument
411 if (publicKey instanceof RSAKey) { in getKeySize()
412 result = ((RSAKey) publicKey).getModulus().bitLength(); in getKeySize()
414 if (publicKey instanceof ECKey) { in getKeySize()
415 result = ((ECKey) publicKey).getParams().getOrder().bitLength(); in getKeySize()
417 if (publicKey instanceof DSAKey) { in getKeySize()
418 DSAParams dsaParams = ((DSAKey) publicKey).getParams(); in getKeySize()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/
DBcSignedDataGenerator.java200 private boolean verifySignFromServer(PublicKey publicKey, byte[] signBytes, in verifySignFromServer() argument
204 signature.initVerify(publicKey); in verifySignFromServer()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/sign/
DBcPkcs7Generator.java242 PublicKey publicKey = signerConfig.getCertificates().get(0).getPublicKey(); in verifySignatureFromServer() local
244 signature.initVerify(publicKey); in verifySignatureFromServer()