Home
last modified time | relevance | path

Searched refs:HKS_IF_NOT_SUCC_LOGE (Results 1 – 25 of 32) sorted by relevance

12

/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_ipc_serialization.c130 HKS_IF_NOT_SUCC_LOGE(ret, "get paramSet failed") in GetKeyAndParamSetFromBuffer()
233 HKS_IF_NOT_SUCC_LOGE(ret, "malloc key data failed") in HksExportPublicKeyUnpack()
246 HKS_IF_NOT_SUCC_LOGE(ret, "malloc paramSet failed") in HksGetKeyParamSetUnpack()
258 HKS_IF_NOT_SUCC_LOGE(ret, "get unsignedData failed") in SignVerifyMacUnpack()
271 HKS_IF_NOT_SUCC_LOGE(ret, "malloc signature data failed") in HksSignUnpack()
297 HKS_IF_NOT_SUCC_LOGE(ret, "malloc outputText data failed") in HksEncryptDecryptUnpack()
316 HKS_IF_NOT_SUCC_LOGE(ret, "malloc agreedKey data failed") in HksAgreeKeyUnpack()
332 HKS_IF_NOT_SUCC_LOGE(ret, "malloc derivedKey data failed") in HksDeriveKeyUnpack()
345 HKS_IF_NOT_SUCC_LOGE(ret, "malloc mac data failed") in HksHmacUnpack()
429 HKS_IF_NOT_SUCC_LOGE(ret, "malloc certChainBlob data failed") in HksCertificateChainUnpack()
Dhks_ipc_service.c83 HKS_IF_NOT_SUCC_LOGE(ret, "HksServiceGenerateKey fail, ret = %" LOG_PUBLIC "d", ret) in HksIpcServiceGenerateKey()
115 HKS_IF_NOT_SUCC_LOGE(ret, "HksServiceImportKey fail, ret = %" LOG_PUBLIC "d", ret) in HksIpcServiceImportKey()
141 HKS_IF_NOT_SUCC_LOGE(ret, "do import wrapped key fail, ret = %" LOG_PUBLIC "d", ret) in HksIpcServiceImportWrappedKey()
188 HKS_IF_NOT_SUCC_LOGE(ret, "HksIpcServiceDeleteKey fail") in HksIpcServiceDeleteKey()
240 HKS_IF_NOT_SUCC_LOGE(ret, "HksServiceKeyExist fail, ret = %" LOG_PUBLIC "d", ret) in HksIpcServiceKeyExist()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_upgrade_storage_data.c145 HKS_IF_NOT_SUCC_LOGE(ret, "get process name failed, ret = %" LOG_PUBLIC "d", ret) in RollBackNewVersionFiles()
150 HKS_IF_NOT_SUCC_LOGE(ret, "destroy new files failed") in RollBackNewVersionFiles()
159 HKS_IF_NOT_SUCC_LOGE(ret, "remove key store file failed, ret = %" LOG_PUBLIC "d", ret) in RemoveOldVersionFiles()
164 HKS_IF_NOT_SUCC_LOGE(ret, "remove root key material file failed, ret = %" LOG_PUBLIC "d", ret) in RemoveOldVersionFiles()
167HKS_IF_NOT_SUCC_LOGE(ret, "remove backup root key material file failed, ret = %" LOG_PUBLIC "d", r… in RemoveOldVersionFiles()
413 HKS_IF_NOT_SUCC_LOGE(RollBackNewVersionFiles(), in HksUpgradeStorageData()
Dhks_report.c30 HKS_IF_NOT_SUCC_LOGE(ret, "report fault event failed, ret = %" LOG_PUBLIC "d", ret) in HksReport()
Dhks_storage_adapter.c67 HKS_IF_NOT_SUCC_LOGE(ret, "HksAddParams failed!") in AddStorageFixedParams()
122 HKS_IF_NOT_SUCC_LOGE(ret, "HksBuildParamSet failed!") in TranslateKeyInfoBlobToParamSet()
Dhks_storage.c703 HKS_IF_NOT_SUCC_LOGE(ret, "get backup full path failed, ret = %" LOG_PUBLIC "d.", ret) in GetStoreBakPath()
795 HKS_IF_NOT_SUCC_LOGE(ret, "get backup file name failed, ret = %" LOG_PUBLIC "d.", ret) in GetFileInfo()
871 HKS_IF_NOT_SUCC_LOGE(ret, "hks save bak key blob failed, ret = %" LOG_PUBLIC "d.", ret) in HksStoreKeyBlob()
912 HKS_IF_NOT_SUCC_LOGE(ret, "check is key exist, ret = %" LOG_PUBLIC "d.", ret) in HksStoreIsKeyBlobExist()
934 HKS_IF_NOT_SUCC_LOGE(ret, "hks get keyblob failed, ret = %" LOG_PUBLIC "d.", ret) in HksStoreGetKeyBlob()
953 HKS_IF_NOT_SUCC_LOGE(ret, "hks get keyblob size failed, ret = %" LOG_PUBLIC "d.", ret) in HksStoreGetKeyBlobSize()
1155HKS_IF_NOT_SUCC_LOGE(ret, "get key alias by processName failed, ret = %" LOG_PUBLIC "d.", ret) in HksGetKeyAliasByProcessName()
1204 HKS_IF_NOT_SUCC_LOGE(ret, "Destroy dir failed! ret = 0x%" LOG_PUBLIC "X", ret) in DestroyType()
Dhks_client_service.c63 HKS_IF_NOT_SUCC_LOGE(ret, "get key blob from storage failed, ret = %" LOG_PUBLIC "d", ret) in GetKeyData()
747 HKS_IF_NOT_SUCC_LOGE(ret, "HksStoreKeyBlob fail, ret = %" LOG_PUBLIC "d", ret) in StoreOrCopyKeyBlob()
786 HKS_IF_NOT_SUCC_LOGE(ret, "store keyblob to storage failed, ret = %" LOG_PUBLIC "d", ret) in HksServiceGenerateKey()
966 HKS_IF_NOT_SUCC_LOGE(ret, "get Key paramSet failed, ret = %" LOG_PUBLIC "d", ret) in HksServiceGetKeyParamSet()
1261 HKS_IF_NOT_SUCC_LOGE(ret, "store attest cert chain failed") in HksServiceAttestKey()
1435 HKS_IF_NOT_SUCC_LOGE(ret, "HuksAccessAbort fail, ret = %" LOG_PUBLIC "d", ret) in HksServiceAbort()
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
Dhks_template_test.cpp121 HKS_IF_NOT_SUCC_LOGE(ret, "HksTemplateTest004")
122 HKS_IF_NOT_SUCC_LOGE(ret, "HksTemplateTest004, %d, %s", 0, "HksTemplateTest004")
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_rkc.c171 HKS_IF_NOT_SUCC_LOGE(ret, "Crypto hal derive key failed! ret = 0x%" LOG_PUBLIC "X", ret) in RkcPbkdf2Hmac()
194 HKS_IF_NOT_SUCC_LOGE(ret, "Pbkdf2 failed! ret = 0x%" LOG_PUBLIC "X", ret) in RkcDeriveRmk()
338HKS_IF_NOT_SUCC_LOGE(ret, "Check 0x%" LOG_PUBLIC "X ksf failed! ret = 0x%" LOG_PUBLIC "X", i, ret) in RkcCheckAllKsf()
369 HKS_IF_NOT_SUCC_LOGE(ret, "Check all ksf failed! ret = 0x%" LOG_PUBLIC "X", ret) in RkcLoadKsf()
419 HKS_IF_NOT_SUCC_LOGE(ret, "Hash rkMaterial2 failed!") in RkcCalculateMaterial()
446 HKS_IF_NOT_SUCC_LOGE(ret, "Calc material failed! ret = 0x%" LOG_PUBLIC "X", ret) in RkcMakeRandomMaterial()
555 HKS_IF_NOT_SUCC_LOGE(ret, "Load/Create ksf failed! ret = 0x%" LOG_PUBLIC "X", ret) in RkcInitKsf()
620 HKS_IF_NOT_SUCC_LOGE(ret, "Init root key component failed! ret = 0x%" LOG_PUBLIC "X", ret) in HksRkcInit()
Dhks_keyblob_lite.c90 HKS_IF_NOT_SUCC_LOGE(ret, "get keyblob derive material failed, type = %" LOG_PUBLIC "u", type) in GetDeriveMaterial()
175HKS_IF_NOT_SUCC_LOGE(ret, "cipher key[0x%" LOG_PUBLIC "x] failed, ret = %" LOG_PUBLIC "d", isEncry… in EncryptAndDecryptKeyBlob()
294HKS_IF_NOT_SUCC_LOGE(ret, "operate failed, alg:%" LOG_PUBLIC "u, ret = %" LOG_PUBLIC "d", keyInfo-… in GetRawKeyMaterial()
433 HKS_IF_NOT_SUCC_LOGE(ret, in AdjustKey()
Dhks_core_service_three_stage.c380 HKS_IF_NOT_SUCC_LOGE(ret, "get new cached data failed, ret = %" LOG_PUBLIC "d", ret) in FinishCachedData()
413 HKS_IF_NOT_SUCC_LOGE(ret, "hal hash update failed ret : %" LOG_PUBLIC "d", ret) in CoreHashUpdate()
466 HKS_IF_NOT_SUCC_LOGE(ret, "check signature failed!") in CheckSignVerifyParams()
490HKS_IF_NOT_SUCC_LOGE(ret, "SignVerify Finish failed, purpose = 0x%" LOG_PUBLIC "x, ret = %" LOG_PU… in CoreSignVerify()
600 HKS_IF_NOT_SUCC_LOGE(ret, "cipher update failed! ret : %" LOG_PUBLIC "d", ret) in CoreCipherUpdate()
663 HKS_IF_NOT_SUCC_LOGE(ret, "cipher DecryptFinish failed! ret : %" LOG_PUBLIC "d", ret) in CoreAesDecryptFinish()
708 HKS_IF_NOT_SUCC_LOGE(ret, "cipher DecryptFinish failed! ret : %" LOG_PUBLIC "d", ret) in CoreSm4DecryptFinish()
741HKS_IF_NOT_SUCC_LOGE(ret, "rsa cipher Finish failed, purpose = 0x%" LOG_PUBLIC "x, ret = %" LOG_PU… in RsaCipherFinish()
794 HKS_IF_NOT_SUCC_LOGE(ret, "Derive get raw key failed!") in GetRawkey()
1355 HKS_IF_NOT_SUCC_LOGE(ret, "hmac final failed! ret : %" LOG_PUBLIC "d", ret) in HksCoreMacThreeStageFinish()
Dhks_keyblob.c226 HKS_IF_NOT_SUCC_LOGE(ret, "cipher key[0x%" LOG_PUBLIC "x] failed!", isEncrypt) in EncryptAndDecryptKeyBlob()
315 HKS_IF_NOT_SUCC_LOGE(ret, "add sys params failed") in AddCoreServiceParams()
341 HKS_IF_NOT_SUCC_LOGE(ret, "build paramset failed!") in BuildClearKeyBlob()
572 HKS_IF_NOT_SUCC_LOGE(ret, "generate hmac key failed!") in GenerateAuthTokenKey()
Dhks_upgrade_key_info.c417 HKS_IF_NOT_SUCC_LOGE(ret, "add param keyAuthId failed!") in AddKeyAuthIdParam()
495 HKS_IF_NOT_SUCC_LOGE(ret, "add param proceseName failed!") in AddProcessNameParam()
513 HKS_IF_NOT_SUCC_LOGE(ret, "add key info params failed, ret = %" LOG_PUBLIC "d", ret) in AddParams()
Dhks_attest.c509 HKS_IF_NOT_SUCC_LOGE(ret, "invalid tbs.\n") in ParseAttestTbs()
526 HKS_IF_NOT_SUCC_LOGE(ret, "invalid dev cert.\n") in ParseAttestCert()
539 HKS_IF_NOT_SUCC_LOGE(ret, "invalid extension.\n") in ParseAttestExtension()
563 HKS_IF_NOT_SUCC_LOGE(ret, "encode validity fail.\n") in EncodeValidity()
1222 HKS_IF_NOT_SUCC_LOGE(ret, "get attestKey fail") in GetCertAndKey()
1432 HKS_IF_NOT_SUCC_LOGE(ret, "create attest cert chain failed!") in HksSoftAttestKey()
Dhks_core_service.c178 HKS_IF_NOT_SUCC_LOGE(ret, "get raw key during key agreement failed!") in GetAgreeBaseKey()
484 HKS_IF_NOT_SUCC_LOGE(ret, "cipher[%" LOG_PUBLIC "x] failed!", cmdId) in Cipher()
1179 HKS_IF_NOT_SUCC_LOGE(ret, "Hks rkc refresh info failed! ret = 0x%" LOG_PUBLIC "X", ret) in HksCoreRefreshKeyInfo()
1211 HKS_IF_NOT_SUCC_LOGE(ret, "get keyblob derive key failed!") in GetMacKey()
1260 HKS_IF_NOT_SUCC_LOGE(ret, "Hks rkc init failed! ret = 0x%" LOG_PUBLIC "X", ret) in HksCoreModuleInit()
/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_template.h44 #define HKS_IF_NOT_SUCC_LOGE(RESULT, LOG_MESSAGE, ...) \ macro
/base/security/huks/frameworks/huks_standard/main/core/src/
Dhks_verifier.c223 HKS_IF_NOT_SUCC_LOGE(ret, "verify root cert failed") in VerifyCertChain()
245 HKS_IF_NOT_SUCC_LOGE(ret, "verify attestation cert chain signature failed") in VerifyAttestationCertChain()
544 HKS_IF_NOT_SUCC_LOGE(ret, "fill attest extend paramSet fail") in FillAttestExtendInfo()
559 HKS_IF_NOT_SUCC_LOGE(ret, "fill attest extend info fail") in GetParamSetOutInfo()
636 HKS_IF_NOT_SUCC_LOGE(ret, "paramSetOut invalid, ret = %" LOG_PUBLIC "d", ret) in CheckValidateCertChainParams()
656 HKS_IF_NOT_SUCC_LOGE(ret, "VerifyAttestationCertChain failed, ret = %" LOG_PUBLIC "d", ret) in HksClientValidateCertChain()
Dhks_local_engine.c40 HKS_IF_NOT_SUCC_LOGE(ret, "Hks local init crypto ability failed, ret = %" LOG_PUBLIC "d", ret) in HksLocalCryptoAbilityInit()
148 HKS_IF_NOT_SUCC_LOGE(ret, "local engine agree key failed, ret:%" LOG_PUBLIC "x!", ret) in HksLocalAgreeKey()
213 HKS_IF_NOT_SUCC_LOGE(ret, in EncryptAndDecrypt()
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c309 HKS_IF_NOT_SUCC_LOGE(ret, "get input params by algorithm failed, ret = %" LOG_PUBLIC "d", ret) in CheckGenKeyMacDeriveParams()
387HKS_IF_NOT_SUCC_LOGE(ret, "check sign or verify mutable params failed, ret = %" LOG_PUBLIC "d", re… in CheckSignVerifyParamsByAlg()
404 HKS_IF_NOT_SUCC_LOGE(ret, "cipher check material params failed, ret = %" LOG_PUBLIC "d", ret) in CheckCipherParamsByAlg()
697 HKS_IF_NOT_SUCC_LOGE(ret, "check mutable params faile, ret = %" LOG_PUBLIC "d", ret) in CheckImportKey()
795 HKS_IF_NOT_SUCC_LOGE(ret, "check signature failed, ret = %" LOG_PUBLIC "d", ret) in HksCoreCheckSignVerifyParams()
827 HKS_IF_NOT_SUCC_LOGE(ret, "check signature failed, ret = %" LOG_PUBLIC "d", ret) in HksLocalCheckSignVerifyParams()
906HKS_IF_NOT_SUCC_LOGE(ret, "cipher check input or output data failed, ret = %" LOG_PUBLIC "d", ret) in HksCoreCheckCipherParams()
945HKS_IF_NOT_SUCC_LOGE(ret, "local cipher check input or output data failed, ret = %" LOG_PUBLIC "d"… in HksLocalCheckCipherParams()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_ecdh.c49HKS_IF_NOT_SUCC_LOGE(ret, "Ecc keyMaterial to private key failed! ret = 0x%" LOG_PUBLIC "X", ret) in EccKeyMaterialToCtx()
Dhks_mbedtls_hash.c560 HKS_IF_NOT_SUCC_LOGE(ret, "Get digest len failed!") in HksMbedtlsHashFinal()
647 HKS_IF_NOT_SUCC_LOGE(ret, "Get digest len failed!") in HksMbedtlsHash()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/
Dhks_teec.c287 HKS_IF_NOT_SUCC_LOGE(ret, "command HksTeeVerifyKeybox failed\n") in HksTeeProvision()
309 HKS_IF_NOT_SUCC_LOGE(ret, "verify provision failed") in HksTeeProvisionVerify()
346 HKS_IF_NOT_SUCC_LOGE(ret, "command HksTeeCheckKeyLegality failed") in HksTeeCheckKeyLegality()
360 HKS_IF_NOT_SUCC_LOGE(ret, "command HksTeeGenerateRandom failed") in HksTeeGenerateRandom()
499 HKS_IF_NOT_SUCC_LOGE(ret, "ProcessUpdate[%" LOG_PUBLIC "u] failed", cmdId) in ProcessUpdate()
626 HKS_IF_NOT_SUCC_LOGE(ret, "Invoke HCM_CMD_ID_IS_DEVICE_KEY_EXIST failed") in HcmTeeIsDeviceKeyExist()
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_client_service_ipc.c71 HKS_IF_NOT_SUCC_LOGE(ret, "FreshParamSet fail, ret = %" LOG_PUBLIC "d", ret) in HksClientGenerateKey()
178 HKS_IF_NOT_SUCC_LOGE(ret, "FreshParamSet fail, ret = %" LOG_PUBLIC "d", ret) in HksClientGetKeyParamSet()
228 HKS_IF_NOT_SUCC_LOGE(ret, "HksClientVerify fail") in HksClientVerify()
253 HKS_IF_NOT_SUCC_LOGE(ret, "add payload param failed") in AddAeTag()
302 HKS_IF_NOT_SUCC_LOGE(ret, "append build paramset fail") in AppendCipherTag()
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hisysevent_wrapper/src/
Dhks_report_wrapper.c116 HKS_IF_NOT_SUCC_LOGE(ret, "Append extra data failed!") in AppendIfExist()
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter_lite.c139 HKS_IF_NOT_SUCC_LOGE(ret, "Pk context to rsa x509 failed! ret = 0x%" LOG_PUBLIC "X", ret) in RsaToX509PublicKey()
202 HKS_IF_NOT_SUCC_LOGE(ret, "Pk context to ecc x509 failed! ret = 0x%" LOG_PUBLIC "X", ret) in EccToX509PublicKey()

12