/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/ |
D | hks_ipc_serialization.c | 130 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()
|
D | hks_ipc_service.c | 83 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/ |
D | hks_upgrade_storage_data.c | 145 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() 167 …HKS_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()
|
D | hks_report.c | 30 HKS_IF_NOT_SUCC_LOGE(ret, "report fault event failed, ret = %" LOG_PUBLIC "d", ret) in HksReport()
|
D | hks_storage_adapter.c | 67 HKS_IF_NOT_SUCC_LOGE(ret, "HksAddParams failed!") in AddStorageFixedParams() 122 HKS_IF_NOT_SUCC_LOGE(ret, "HksBuildParamSet failed!") in TranslateKeyInfoBlobToParamSet()
|
D | hks_storage.c | 703 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() 1155 … HKS_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()
|
D | hks_client_service.c | 63 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/ |
D | hks_template_test.cpp | 121 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/ |
D | hks_rkc.c | 171 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() 338 … HKS_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()
|
D | hks_keyblob_lite.c | 90 HKS_IF_NOT_SUCC_LOGE(ret, "get keyblob derive material failed, type = %" LOG_PUBLIC "u", type) in GetDeriveMaterial() 175 …HKS_IF_NOT_SUCC_LOGE(ret, "cipher key[0x%" LOG_PUBLIC "x] failed, ret = %" LOG_PUBLIC "d", isEncry… in EncryptAndDecryptKeyBlob() 294 …HKS_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()
|
D | hks_core_service_three_stage.c | 380 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() 490 …HKS_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() 741 …HKS_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()
|
D | hks_keyblob.c | 226 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()
|
D | hks_upgrade_key_info.c | 417 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()
|
D | hks_attest.c | 509 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()
|
D | hks_core_service.c | 178 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/ |
D | hks_template.h | 44 #define HKS_IF_NOT_SUCC_LOGE(RESULT, LOG_MESSAGE, ...) \ macro
|
/base/security/huks/frameworks/huks_standard/main/core/src/ |
D | hks_verifier.c | 223 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()
|
D | hks_local_engine.c | 40 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/ |
D | hks_check_paramset.c | 309 HKS_IF_NOT_SUCC_LOGE(ret, "get input params by algorithm failed, ret = %" LOG_PUBLIC "d", ret) in CheckGenKeyMacDeriveParams() 387 …HKS_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() 906 … HKS_IF_NOT_SUCC_LOGE(ret, "cipher check input or output data failed, ret = %" LOG_PUBLIC "d", ret) in HksCoreCheckCipherParams() 945 …HKS_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/ |
D | hks_mbedtls_ecdh.c | 49 … HKS_IF_NOT_SUCC_LOGE(ret, "Ecc keyMaterial to private key failed! ret = 0x%" LOG_PUBLIC "X", ret) in EccKeyMaterialToCtx()
|
D | hks_mbedtls_hash.c | 560 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/ |
D | hks_teec.c | 287 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/ |
D | hks_client_service_ipc.c | 71 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/ |
D | hks_report_wrapper.c | 116 HKS_IF_NOT_SUCC_LOGE(ret, "Append extra data failed!") in AppendIfExist()
|
/base/security/huks/utils/crypto_adapter/ |
D | hks_client_service_adapter_lite.c | 139 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()
|