Home
last modified time | relevance | path

Searched refs:fieldType (Results 1 - 25 of 28) sorted by relevance

12

/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
H A Dopenssl_class.h36 char *fieldType; member
47 char *fieldType; member
129 char *fieldType; member
140 char *fieldType; member
/base/security/crypto_framework/frameworks/key/
H A Dkey_utils.c73 if (src == NULL || src->fieldType == NULL || dest == NULL) { in CopyEcField()
82 size_t srcFieldTypeLen = HcfStrlen(src->fieldType); in CopyEcField()
84 LOGE("fieldType is empty!"); in CopyEcField()
88 tmpField->fieldType = (char *)HcfMalloc(srcFieldTypeLen + 1, 0); in CopyEcField()
89 if (tmpField->fieldType == NULL) { in CopyEcField()
99 HcfFree(tmpField->fieldType); in CopyEcField()
103 (void)memcpy_s(tmpField->fieldType, srcFieldTypeLen, src->fieldType, srcFieldTypeLen); in CopyEcField()
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Dsm2_asy_key_generator_openssl.c353 HcfFree(impl->fieldType); in DestroySm2PubKey()
354 impl->fieldType = NULL; in DestroySm2PubKey()
371 HcfFree(impl->fieldType); in DestroySm2PriKey()
372 impl->fieldType = NULL; in DestroySm2PriKey()
746 static HcfResult PackSm2PubKey(int32_t curveId, EC_KEY *ecKey, const char *fieldType, in PackSm2PubKey() argument
756 if (fieldType != NULL) { in PackSm2PubKey()
757 size_t len = HcfStrlen(fieldType); in PackSm2PubKey()
769 (void)memcpy_s(tmpFieldType, len, fieldType, len); in PackSm2PubKey()
783 returnPubKey->fieldType = tmpFieldType; in PackSm2PubKey()
797 static HcfResult PackSm2PriKey(int32_t curveId, EC_KEY *ecKey, const char *fieldType, in PackSm2PriKey() argument
1131 PackAndAssignPubKey(const HcfAsyKeyGeneratorSpiOpensslSm2Impl *impl, const char *fieldType, EC_KEY *ecKey, HcfPubKey **returnObj) PackAndAssignPubKey() argument
1144 PackAndAssignPriKey(const HcfAsyKeyGeneratorSpiOpensslSm2Impl *impl, const char *fieldType, EC_KEY *ecKey, HcfPriKey **returnObj) PackAndAssignPriKey() argument
1157 CreateAndAssignKeyPair(const HcfAsyKeyGeneratorSpiOpensslSm2Impl *impl, const char *fieldType, EC_KEY *ecKey, HcfKeyPair **returnObj) CreateAndAssignKeyPair() argument
[all...]
H A Decc_common_param_spec_generator_openssl.c184 char *fieldType = "Fp"; in BuildEccCommonParamObject() local
185 size_t srcFieldTypeLen = HcfStrlen(fieldType); in BuildEccCommonParamObject()
187 LOGE("fieldType is empty!"); in BuildEccCommonParamObject()
192 spi->paramsSpec.field->fieldType = (char *)HcfMalloc(srcFieldTypeLen + 1, 0); in BuildEccCommonParamObject()
193 if (spi->paramsSpec.field->fieldType == NULL) { in BuildEccCommonParamObject()
194 LOGE("fieldType malloc failed."); in BuildEccCommonParamObject()
200 if (memcpy_s(spi->paramsSpec.field->fieldType, srcFieldTypeLen, fieldType, srcFieldTypeLen) != EOK) { in BuildEccCommonParamObject()
201 LOGE("memcpy fieldType failed."); in BuildEccCommonParamObject()
202 HcfFree(spi->paramsSpec.field->fieldType); in BuildEccCommonParamObject()
[all...]
H A Decc_asy_key_generator_openssl.c938 HcfFree(impl->fieldType); in DestroyEccPubKey()
939 impl->fieldType = NULL; in DestroyEccPubKey()
954 HcfFree(impl->fieldType); in DestroyEccPriKey()
955 impl->fieldType = NULL; in DestroyEccPriKey()
1442 LOGE("fieldType is empty!"); in GetCurveName()
1610 static HcfResult PackEccPubKey(int32_t curveId, EC_KEY *ecKey, const char *fieldType, in PackEccPubKey() argument
1619 if (fieldType != NULL) { in PackEccPubKey()
1620 size_t len = HcfStrlen(fieldType); in PackEccPubKey()
1622 LOGE("fieldType is empty!"); in PackEccPubKey()
1632 (void)memcpy_s(tmpFieldType, len, fieldType, le in PackEccPubKey()
1653 PackEccPriKey(int32_t curveId, EC_KEY *ecKey, const char *fieldType, HcfOpensslEccPriKey **returnObj) PackEccPriKey() argument
1922 PackAndAssignPubKey(const HcfAsyKeyGeneratorSpiOpensslEccImpl *impl, const char *fieldType, EC_KEY *ecKey, HcfPubKey **returnObj) PackAndAssignPubKey() argument
1934 PackAndAssignPriKey(const HcfAsyKeyGeneratorSpiOpensslEccImpl *impl, const char *fieldType, EC_KEY *ecKey, HcfPriKey **returnObj) PackAndAssignPriKey() argument
1946 CreateAndAssignKeyPair(const HcfAsyKeyGeneratorSpiOpensslEccImpl *impl, const char *fieldType, EC_KEY *ecKey, HcfKeyPair **returnObj) CreateAndAssignKeyPair() argument
[all...]
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
H A Decc_openssl_common.c429 char *fieldType = NULL; in GetFieldType() local
431 fieldType = ((HcfOpensslEccPriKey *)self)->fieldType; in GetFieldType()
433 fieldType = ((HcfOpensslEccPubKey *)self)->fieldType; in GetFieldType()
436 if (fieldType == NULL) { in GetFieldType()
437 LOGE("No fieldType in EccPubKey struct."); in GetFieldType()
441 size_t len = HcfStrlen(fieldType); in GetFieldType()
443 LOGE("fieldType is empty!"); in GetFieldType()
451 (void)memcpy_s(*returnString, len, fieldType, le in GetFieldType()
[all...]
/base/security/crypto_framework/test/unittest/src/ecc/
H A Decc_asy_key_common.cpp43 eccCommSpec->field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc192CommParamsSpec()
71 eccCommSpec->field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224CommParamsSpec()
99 eccPubKeySpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224PubKeyParamsSpec()
131 eccPriKeySpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224PriKeyParamsSpec()
161 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224KeyPairParamsSpec()
195 eccCommSpec->field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc256CommParamsSpec()
223 eccPubKeySpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc256PubKeyParamsSpec()
255 eccPriKeySpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc256PriKeyParamsSpec()
285 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc256KeyPairParamsSpec()
319 eccCommSpec->field->fieldType in ConstructEcc384CommParamsSpec()
[all...]
H A Dcrypto_ecc_no_length_sign_sub_test.cpp88 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224KeyPairParamsSpec()
122 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc256KeyPairParamsSpec()
156 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc384KeyPairParamsSpec()
190 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc521KeyPairParamsSpec()
H A Dcrypto_ecc_no_length_sign_test.cpp88 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224KeyPairParamsSpec()
122 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc256KeyPairParamsSpec()
156 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc384KeyPairParamsSpec()
190 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc521KeyPairParamsSpec()
H A Dcrypto_ecc_no_length_verify_test.cpp91 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224KeyPairParamsSpec()
125 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc256KeyPairParamsSpec()
159 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc384KeyPairParamsSpec()
193 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc521KeyPairParamsSpec()
H A Dcrypto_ecc_no_length_verify_sub_test.cpp91 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224KeyPairParamsSpec()
125 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc256KeyPairParamsSpec()
159 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc384KeyPairParamsSpec()
193 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc521KeyPairParamsSpec()
/base/security/crypto_framework/interfaces/inner_api/algorithm_parameter/
H A Ddetailed_ecc_key_params.h26 char *fieldType; member
/base/security/crypto_framework/test/unittest/src/
H A Decc_common_param_spec.c94 eccKeyPairSpec->base.field->fieldType = eccCommSpec->field->fieldType; in ConstructEccKeyPairParamsSpec()
166 eccPubKeySpec->base.field->fieldType = eccCommSpec->field->fieldType; in ConstructEccPubKeyParamsSpec()
217 eccPriKeySpec->base.field->fieldType = eccCommSpec->field->fieldType; in ConstructEccPriKeyParamsSpec()
H A Dcrypto_key_utils_test.cpp63 eccCommSpec->field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224CommParamsSpec()
H A Dcrypto_ecc_key_agreement_by_spec_test.cpp85 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224KeyPairParamsSpec()
119 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc256KeyPairParamsSpec()
153 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc384KeyPairParamsSpec()
187 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc521KeyPairParamsSpec()
H A Dcrypto_asy_key_generator_cov_test.cpp536 eccCommSpec->field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224CommParamsSpec()
571 eccPubKeySpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224PubKeyParamsSpec()
611 eccPriKeySpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224PriKeyParamsSpec()
649 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224KeyPairParamsSpec()
1296 eccCommSpec->field->fieldType = const_cast<char *>(g_eccAlgName.c_str()); in HWTEST_F()
/base/security/security_guard/test/unittest/risk_classify/include/
H A Dmodel_cfg_marshalling.h28 std::string fieldType;
/base/security/security_guard/test/unittest/data_collect/sa/
H A Dmodel_cfg_marshalling.h27 std::string fieldType;
/base/security/security_guard/test/unittest/config_manager/src/
H A Dsecurity_guard_config_manager_test.cpp371 EXPECT_TRUE(field.fieldType == ""); in HWTEST_F()
381 EXPECT_TRUE(field.fieldType == ""); in HWTEST_F()
389 jsonObj["fieldType"] = 0; in HWTEST_F()
392 EXPECT_TRUE(field.fieldType == ""); in HWTEST_F()
400 jsonObj["fieldType"] = 0; in HWTEST_F()
404 EXPECT_TRUE(field.fieldType == ""); in HWTEST_F()
412 jsonObj["fieldType"] = 0; in HWTEST_F()
416 EXPECT_TRUE(field.fieldType == ""); in HWTEST_F()
424 jsonObj["fieldType"] = "fieldType"; in HWTEST_F()
[all...]
/base/security/security_guard/test/unittest/config_manager/include/
H A Dconfig_define.h25 std::string fieldType;
/base/security/security_guard/services/config_manager/include/
H A Dconfig_define.h25 std::string fieldType;
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_utils.cpp740 fp->base.fieldType = static_cast<char *>(HcfMalloc(fieldTpyeLen + 1, 0)); in GetFpField()
741 if (fp->base.fieldType == nullptr) { in GetFpField()
742 LOGE("malloc fieldType failed!"); in GetFpField()
746 (void)memcpy_s(fp->base.fieldType, fieldTpyeLen+ 1, ECC_FIELD_TYPE_FP.c_str(), fieldTpyeLen); in GetFpField()
751 HcfFree(fp->base.fieldType); in GetFpField()
771 // get fieldType in { fieldType : fieldTypeData } of ECField in GetField()
773 status = napi_get_named_property(env, fieldData, "fieldType", &fieldTypeData); in GetField()
776 LOGE("failed to get valid fieldType data!"); in GetField()
779 string fieldType; in GetField() local
1853 napi_value fieldType; ConvertEccCommonParamFieldFpToNapiValue() local
[all...]
/base/security/crypto_framework/common/src/
H A Dasy_key_params.c158 HcfFree((*field)->fieldType); in FreeEcFieldMem()
159 (*field)->fieldType = NULL; in FreeEcFieldMem()
/base/security/crypto_framework/test/fuzztest/key/asykeygenerator_fuzzer/
H A Dasykeygenerator_fuzzer.cpp506 eccCommSpec->field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224CommParamsSpec()
534 eccPubKeySpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224PubKeyParamsSpec()
566 eccPriKeySpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224PriKeyParamsSpec()
596 eccKeyPairSpec->base.field->fieldType = const_cast<char *>(g_eccFieldType.c_str()); in ConstructEcc224KeyPairParamsSpec()
676 eccPubKeySpec->base.field->fieldType = eccCommSpec->field->fieldType; in ConstructSm2256PubKeyParamsSpec()
725 eccPriKeySpec->base.field->fieldType = eccCommSpec->field->fieldType; in ConstructSm2256PriKeyParamsSpec()
811 eccKeyPairSpec->base.field->fieldType = eccCommSpec->field->fieldType; in ConstructSm2256KeyPairParamsSpec()
[all...]
/base/security/security_guard/services/config_manager/src/
H A Dmodel_cfg_marshalling.cpp40 if (jsonObj.find("fieldName") == jsonObj.end() || jsonObj.find("fieldType") == jsonObj.end() || in from_json()
45 if (!jsonObj.at("fieldName").is_string() || !jsonObj.at("fieldType").is_string() || in from_json()
51 field.fieldType = jsonObj.at("fieldType").get<std::string>(); in from_json()

Completed in 29 milliseconds

12