/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
H A D | openssl_dsa_helper.c | 33 DSA *dsa = DSA_new(); in GenerateDsaKey() local 34 if (dsa == NULL) { in GenerateDsaKey() 38 DSA_free(dsa); in GenerateDsaKey() 42 DSA_free(dsa); in GenerateDsaKey() 48 DSA_free(dsa); in GenerateDsaKey() 54 DSA_free(dsa); in GenerateDsaKey() 104 DSA *dsa = NULL; in InitDsa() local 113 dsa = NULL; in InitDsa() 119 dsa = NULL; in InitDsa() 124 if (dsa == NULL) { in InitDsa() [all …]
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
H A D | hks_openssl_dsa.c | 135 DSA *dsa = DSA_new(); in InitDsaStruct() local 136 HKS_IF_NULL_RETURN(dsa, NULL) in InitDsaStruct() 140 SELF_FREE_PTR(dsa, DSA_free); in InitDsaStruct() 145 SELF_FREE_PTR(dsa, DSA_free); in InitDsaStruct() 149 return dsa; in InitDsaStruct() 273 DSA *dsa = DSA_new(); in HksOpensslDsaGenerateKey() local 286 ret = DSA_generate_key(dsa); in HksOpensslDsaGenerateKey() 298 if (dsa != NULL) { in HksOpensslDsaGenerateKey() 299 DSA_free(dsa); in HksOpensslDsaGenerateKey() 353 DSA_free(dsa); in InitDSACtx() [all …]
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
H A D | dsa_asy_key_generator_openssl.c | 598 if (dsa == NULL) { in CreateOpensslDsaKey() 608 OpensslDsaFree(dsa); in CreateOpensslDsaKey() 612 *returnDsa = dsa; in CreateOpensslDsaKey() 618 OpensslDsaFree(dsa); in CreateOpensslDsaKey() 621 *returnDsa = dsa; in CreateOpensslDsaKey() 679 DSA *dsa = NULL; in CreateDsaKeyPairByCommSpec() local 714 DSA *dsa = NULL; in CreateDsaPubKeyByKeyPairSpec() local 728 DSA *dsa = NULL; in CreateDsaPriKeyByKeyPairSpec() local 773 DSA *dsa = NULL; in CreateDsaPubKeyByPubKeySpec() local 791 if (dsa == NULL) { in ConvertDsaPubKey() [all …]
|
/ohos5.0/base/security/crypto_framework/test/unittest/src/ |
H A D | openssl_adapter_mock.c | 923 void OpensslDsaFree(DSA *dsa) in OpensslDsaFree() argument 925 if (dsa != NULL) { in OpensslDsaFree() 926 DSA_free(dsa); in OpensslDsaFree() 930 int OpensslDsaUpRef(DSA *dsa) in OpensslDsaUpRef() argument 935 return DSA_up_ref(dsa); in OpensslDsaUpRef() 943 return DSA_set0_pqg(dsa, p, q, g); in OpensslDsaSet0Pqg() 959 return DSA_get0_p(dsa); in OpensslDsaGet0P() 967 return DSA_get0_q(dsa); in OpensslDsaGet0Q() 975 return DSA_get0_g(dsa); in OpensslDsaGet0G() 983 return DSA_get0_pub_key(dsa); in OpensslDsaGet0PubKey() [all …]
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/src/ |
H A D | openssl_adapter.c | 581 void OpensslDsaFree(DSA *dsa) in OpensslDsaFree() argument 583 DSA_free(dsa); in OpensslDsaFree() 586 int OpensslDsaUpRef(DSA *dsa) in OpensslDsaUpRef() argument 588 return DSA_up_ref(dsa); in OpensslDsaUpRef() 593 return DSA_set0_pqg(dsa, p, q, g); in OpensslDsaSet0Pqg() 603 return DSA_get0_p(dsa); in OpensslDsaGet0P() 608 return DSA_get0_q(dsa); in OpensslDsaGet0Q() 613 return DSA_get0_g(dsa); in OpensslDsaGet0G() 618 return DSA_get0_pub_key(dsa); in OpensslDsaGet0PubKey() 623 return DSA_get0_priv_key(dsa); in OpensslDsaGet0PrivKey() [all …]
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/inc/ |
H A D | openssl_adapter.h | 170 void OpensslDsaFree(DSA *dsa); 171 int OpensslDsaUpRef(DSA *dsa); 172 int OpensslDsaSet0Pqg(DSA *dsa, BIGNUM *p, BIGNUM *q, BIGNUM *g); 173 int OpensslDsaSet0Key(DSA *dsa, BIGNUM *pubKey, BIGNUM *priKey); 174 const BIGNUM *OpensslDsaGet0P(const DSA *dsa); 175 const BIGNUM *OpensslDsaGet0Q(const DSA *dsa); 176 const BIGNUM *OpensslDsaGet0G(const DSA *dsa); 177 const BIGNUM *OpensslDsaGet0PubKey(const DSA *dsa); 178 const BIGNUM *OpensslDsaGet0PrivKey(const DSA *dsa); 182 int OpensslI2dDsaPubkey(DSA *dsa, unsigned char **ppout); [all …]
|
/ohos5.0/base/security/huks/utils/crypto_adapter/ |
H A D | hks_client_service_adapter.c | 241 DSA *dsa = NULL; in DsaToX509PublicKey() local 248 dsa = DSA_new(); in DsaToX509PublicKey() 256 if (DSA_set0_key(dsa, dsaY, NULL) != 1) { in DsaToX509PublicKey() 261 if (DSA_set0_pqg(dsa, dsaP, dsaQ, dsaG) != 1) { in DsaToX509PublicKey() 272 if (EVP_PKEY_set1_DSA(pkey, dsa) == 0) { in DsaToX509PublicKey() 280 SELF_FREE_PTR(dsa, DSA_free) in DsaToX509PublicKey() 625 *info = func(dsa); in GetDsaKeyInfo() 639 const DSA *dsa = EVP_PKEY_get0_DSA(pkey); in X509PublicKeyToDsa() local 640 HKS_IF_NULL_LOGE_RETURN(dsa, HKS_ERROR_NULL_POINTER, in X509PublicKeyToDsa() 653 GetDsaKeyInfo(dsa, &p, &pSize, DSA_get0_p) != HKS_SUCCESS || in X509PublicKeyToDsa() [all …]
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/ |
H A D | dsa_openssl.c | 173 DSA *dsa = isSign ? ((HcfOpensslDsaPriKey *)key)->sk : ((HcfOpensslDsaPubKey *)key)->pk; in CreateDsaEvpKeyByDsa() local 174 if (dsa == NULL) { in CreateDsaEvpKeyByDsa() 179 if (OpensslEvpPkeySet1Dsa(pKey, dsa) != HCF_OPENSSL_SUCCESS) { in CreateDsaEvpKeyByDsa()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-crypto-architecture-kit/ |
H A D | js-apis-cryptoFramework.md | 2144 let asyKeyPairSpec: cryptoFramework.DSAKeyPairSpec; // dsa as example, asyKeyPairSpec specifies ful… 2190 let asyKeyPairSpec: cryptoFramework.DSAKeyPairSpec; // dsa as example, asyKeyPairSpec specifies ful… 2233 let asyKeyPairSpec: cryptoFramework.DSAKeyPairSpec; // dsa as example, asyKeyPairSpec specifies ful… 2281 let asyKeyPairSpec: cryptoFramework.DSAKeyPairSpec; // dsa as example, asyKeyPairSpec specifies ful… 2327 let asyKeyPairSpec: cryptoFramework.DSAKeyPairSpec; // dsa as example, asyKeyPairSpec specifies ful… 2368 let asyKeyPairSpec: cryptoFramework.DSAKeyPairSpec; // dsa as example, asyKeyPairSpec specifies ful… 2415 let asyKeyPairSpec: cryptoFramework.DSAKeyPairSpec; // dsa as example, asyKeyPairSpec specifies ful… 2461 let asyKeyPairSpec: cryptoFramework.DSAKeyPairSpec; // dsa as example, asyKeyPairSpec specifies ful… 2502 let asyKeyPairSpec: cryptoFramework.DSAKeyPairSpec; // dsa as example, asyKeyPairSpec specifies ful…
|
/ohos5.0/build/docs/ |
H A D | 编译构建调试文档.md | 695 ../../third_party/openssl/include/openssl/dsa.h
|