Home
last modified time | relevance | path

Searched refs:evpPkey (Results 1 - 4 of 4) sorted by relevance

/developtools/hapsigner/hapsigntool_cpp/utils/include/
H A Dkey_store_helper.h32 int WriteKeyStore(EVP_PKEY* evpPkey, std::string& keyStorePath, char* keyStorePwd,
35 char* keyPwd, EVP_PKEY** evpPkey);
52 char* keyPwd, const std::string& charsAlias, EVP_PKEY* evpPkey, X509* cert);
54 bool InitX509(X509& cert, EVP_PKEY& evpPkey);
/developtools/hapsigner/hapsigntool_cpp/utils/src/
H A Dkey_store_helper.cpp149 bool KeyStoreHelper::InitX509(X509& cert, EVP_PKEY& evpPkey) in InitX509() argument
187 if (!X509_set_pubkey(&cert, &evpPkey)) { in InitX509()
194 if (!X509_sign(&cert, &evpPkey, md)) { in InitX509()
363 int KeyStoreHelper::WriteKeyStore(EVP_PKEY* evpPkey, std::string& keyStorePath, in WriteKeyStore() argument
370 if (evpPkey == nullptr) { in WriteKeyStore()
375 if (!InitX509(*cert, *evpPkey)) { in WriteKeyStore()
380 if (CreatePKCS12(&p12, keyStorePath, keyStorePwd, keyPwd, alias.c_str(), evpPkey, cert) == RET_FAILED) { in WriteKeyStore()
408 char* keyPwd, const std::string& charsAlias, EVP_PKEY* evpPkey, X509* cert) in CreatePKCS12()
427 *p12 = CreatePKCS12(keyStorePwd, keyPwd, charsAlias.c_str(), evpPkey, cert, 0, 0, 0, -1, 0, &safes); in CreatePKCS12()
429 *p12 = CreatePKCS12(keyStorePwd, keyPwd, charsAlias.c_str(), evpPkey, cer in CreatePKCS12()
407 CreatePKCS12(PKCS12** p12, const std::string& charsStorePath, char* keyStorePwd, char* keyPwd, const std::string& charsAlias, EVP_PKEY* evpPkey, X509* cert) CreatePKCS12() argument
442 ReadKeyStore(std::string& keyStorePath, char* keyStorePwd, const std::string& alias, char* keyPwd, EVP_PKEY** evpPkey) ReadKeyStore() argument
[all...]
/developtools/hapsigner/hapsigntool_cpp/api/include/
H A Dcert_tools.h34 static X509_REQ* GenerateCsr(EVP_PKEY* evpPkey, std::string signAlgorithm, std::string subject);
/developtools/hapsigner/hapsigntool_cpp/api/src/
H A Dcert_tools.cpp461 X509_REQ* CertTools::GenerateCsr(EVP_PKEY* evpPkey, std::string signAlgorithm, std::string subject) in GenerateCsr() argument
466 if (!X509_REQ_set_pubkey(req, evpPkey)) { in GenerateCsr()
478 if (!X509_REQ_sign(req, evpPkey, EVP_sha256())) { in GenerateCsr()
483 if (!X509_REQ_sign(req, evpPkey, EVP_sha384())) { in GenerateCsr()

Completed in 3 milliseconds