Home
last modified time | relevance | path

Searched refs:HKS_ERROR_MALLOC_FAIL (Results 1 – 25 of 104) sorted by relevance

12345

/base/security/huks/interfaces/kits/napi/src/v9/
Dhuks_napi_init_session.cpp111 return HKS_ERROR_MALLOC_FAIL; in InitOutParams()
116 return HKS_ERROR_MALLOC_FAIL; in InitOutParams()
123 return HKS_ERROR_MALLOC_FAIL; in InitOutParams()
128 return HKS_ERROR_MALLOC_FAIL; in InitOutParams()
/base/security/huks/interfaces/kits/napi/src/v8/
Dhuks_napi_init.cpp111 return HKS_ERROR_MALLOC_FAIL; in InitOutParams()
116 return HKS_ERROR_MALLOC_FAIL; in InitOutParams()
123 return HKS_ERROR_MALLOC_FAIL; in InitOutParams()
128 return HKS_ERROR_MALLOC_FAIL; in InitOutParams()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_response_samgr.c79 HKS_IF_NULL_LOGE_RETURN(name, HKS_ERROR_MALLOC_FAIL, "GetProcessName malloc failed.") in HksGetProcessInfoForIPC()
85 HKS_IF_NULL_LOGE_RETURN(userId, HKS_ERROR_MALLOC_FAIL, "GetProcessUserId malloc failed.") in HksGetProcessInfoForIPC()
Dhks_response.cpp80 HKS_IF_NULL_LOGE_RETURN(name, HKS_ERROR_MALLOC_FAIL, "GetProcessName malloc failed.") in HksGetProcessInfoForIPC()
108 return HKS_ERROR_MALLOC_FAIL; in HksGetProcessInfoForIPC()
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_crypto_adapter.c133 HKS_IF_NULL_LOGE_RETURN(aeadParam, HKS_ERROR_MALLOC_FAIL, "aeadParam malloc failed!") in HksFillAeadParam()
155 HKS_IF_NULL_LOGE_RETURN(param, HKS_ERROR_MALLOC_FAIL, "param malloc failed!") in HksFillIvParam()
179 HKS_IF_NULL_LOGE_RETURN(usageSpec, HKS_ERROR_MALLOC_FAIL, "cipher usageSpec malloc failed!") in HksBuildCipherUsageSpec()
300 HKS_IF_NULL_RETURN(keyOut->data, HKS_ERROR_MALLOC_FAIL) in SetCurve25519KeyMaterial()
382 HKS_IF_NULL_RETURN(buffer, HKS_ERROR_MALLOC_FAIL) in GetCurve25519FromKeyMaterial()
421 HKS_IF_NULL_LOGE_RETURN(publicKey, HKS_ERROR_MALLOC_FAIL, "malloc public key failed.") in FormatRsaKey()
449 HKS_IF_NULL_LOGE_RETURN(publicKey, HKS_ERROR_MALLOC_FAIL, "malloc key failed.") in FormatDsaKey()
479 HKS_IF_NULL_LOGE_RETURN(publicKey, HKS_ERROR_MALLOC_FAIL, "malloc public key failed.") in FormatEccKey()
505 HKS_IF_NULL_LOGE_RETURN(publicKey, HKS_ERROR_MALLOC_FAIL, "malloc public key failed.") in FormatDhKey()
533 return HKS_ERROR_MALLOC_FAIL; in HksSetKeyToMaterial()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_hmac.c53 HKS_IF_NULL_RETURN(outKey, HKS_ERROR_MALLOC_FAIL) in HksMbedtlsHmacGenerateKey()
128 … HKS_IF_NULL_LOGE_RETURN(hmacCtx, HKS_ERROR_MALLOC_FAIL, "Mbedtls hmac init hmacCtx malloc fail!") in HksMbedtlsHmacInit()
153 return HKS_ERROR_MALLOC_FAIL; in HksMbedtlsHmacInit()
166 HKS_IF_NULL_LOGE_RETURN(hmacCtx, HKS_ERROR_MALLOC_FAIL, "Mbedtls hmac update hmacCtx is null!") in HksMbedtlsHmacUpdate()
Dhks_mbedtls_hash.c51 HKS_IF_NULL_LOGE_RETURN(context, HKS_ERROR_MALLOC_FAIL, "malloc fail") in HksMbedtlsHashMd5Init()
72 return HKS_ERROR_MALLOC_FAIL; in HksMbedtlsHashMd5Init()
135 HKS_IF_NULL_LOGE_RETURN(context, HKS_ERROR_MALLOC_FAIL, "malloc fail") in HksMbedtlsHashSha1Init()
155 return HKS_ERROR_MALLOC_FAIL; in HksMbedtlsHashSha1Init()
224 HKS_IF_NULL_LOGE_RETURN(context, HKS_ERROR_MALLOC_FAIL, "malloc fail") in HksMbedtlsHashSha256Init()
253 return HKS_ERROR_MALLOC_FAIL; in HksMbedtlsHashSha256Init()
322 HKS_IF_NULL_LOGE_RETURN(context, HKS_ERROR_MALLOC_FAIL, "malloc fail") in HksMbedtlsHashSha512Init()
351 return HKS_ERROR_MALLOC_FAIL; in HksMbedtlsHashSha512Init()
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/
Dhks_safe_cipher_key_test.cpp65 return HKS_ERROR_MALLOC_FAIL; in CompareTwoKey()
73 return HKS_ERROR_MALLOC_FAIL; in CompareTwoKey()
Dhks_safe_compare_key_test.cpp128 return HKS_ERROR_MALLOC_FAIL; in CompareKeyData()
136 return HKS_ERROR_MALLOC_FAIL; in CompareKeyData()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_safe_cipher_key_test.cpp69 return HKS_ERROR_MALLOC_FAIL; in CompareTwoKey()
77 return HKS_ERROR_MALLOC_FAIL; in CompareTwoKey()
Dhks_device_sec_test.cpp122 return HKS_ERROR_MALLOC_FAIL; in ConstructDataToCertChain()
144 return HKS_ERROR_MALLOC_FAIL; in ConstructDataToCertChain()
268 return HKS_ERROR_MALLOC_FAIL; in ValidateCertChainTest()
270 int32_t ret = HKS_ERROR_MALLOC_FAIL; in ValidateCertChainTest()
Dhks_safe_compare_key_test.cpp128 return HKS_ERROR_MALLOC_FAIL; in CompareKeyData()
136 return HKS_ERROR_MALLOC_FAIL; in CompareKeyData()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_sm_import_wrap_key.c194 HKS_IF_NULL_LOGE_RETURN(kekBuffer, HKS_ERROR_MALLOC_FAIL, "malloc kekBuffer memory failed!"); in DecryptKekWithSm2()
240 …HKS_IF_NULL_LOGE_RETURN(kekDataBlob.data, HKS_ERROR_MALLOC_FAIL, "malloc kekDataBlob memory failed… in SplitKekAndSignData()
251 ret = HKS_ERROR_MALLOC_FAIL; in SplitKekAndSignData()
305 return HKS_ERROR_MALLOC_FAIL; in VerifyKekBySm2()
323 …HKS_IF_NULL_LOGE_RETURN(deriveBlob.data, HKS_ERROR_MALLOC_FAIL, "malloc deriveBlob memory failed!"… in DeriveKeyBySm3()
385 HKS_IF_NULL_LOGE_RETURN(mac.data, HKS_ERROR_MALLOC_FAIL, "malloc mac memory failed!"); in CompareWrapKeyHmac()
409 …HKS_IF_NULL_LOGE_RETURN(cipherParam, HKS_ERROR_MALLOC_FAIL, "build dec wrapped usage: cipherParam … in BuildDecryptUsageSpecOfSmUnwrap()
420 …HKS_IF_NULL_LOGE_RETURN(mallocResultData, HKS_ERROR_MALLOC_FAIL, "malloc mallocResultData memory f… in SubPaddingPlaintext()
444 …HKS_IF_NULL_LOGE_RETURN(originKeyBuffer, HKS_ERROR_MALLOC_FAIL, "malloc originKeyBuffer memory fai… in DecryptImportedSmKey()
451 return HKS_ERROR_MALLOC_FAIL; in DecryptImportedSmKey()
Dhks_keyblob.c97 HKS_IF_NULL_LOGE_RETURN(salt->data, HKS_ERROR_MALLOC_FAIL, "malloc failed") in GetSalt()
154 return HKS_ERROR_MALLOC_FAIL; in GetDeriveKey()
178 HKS_IF_NULL_LOGE_RETURN(aeadParam, HKS_ERROR_MALLOC_FAIL, "aeadParam malloc failed!") in BuildKeyBlobUsageSpec()
208 HKS_IF_NULL_RETURN(usageSpec, HKS_ERROR_MALLOC_FAIL) in EncryptAndDecryptKeyBlob()
283 HKS_IF_NULL_LOGE_RETURN(keyInfo->data, HKS_ERROR_MALLOC_FAIL, "malloc failed") in InitKeyBlobInfo()
379 HKS_IF_NULL_LOGE_RETURN(keyBlob, HKS_ERROR_MALLOC_FAIL, "malloc keyBlob failed") in GetAadAndParamSet()
470 HKS_IF_NULL_LOGE_RETURN(data, HKS_ERROR_MALLOC_FAIL, "fail to malloc raw key") in HksGetRawKey()
517 HKS_IF_NULL_LOGE_RETURN(aeadParam, HKS_ERROR_MALLOC_FAIL, "aeadParam malloc failed!") in HksDecryptAuthToken()
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter_common.c41 HKS_IF_NULL_LOGE_RETURN(outData, HKS_ERROR_MALLOC_FAIL, "malloc failed") in CopyToInnerKey()
61 …HKS_IF_NULL_LOGE_RETURN(buffer, HKS_ERROR_MALLOC_FAIL, "malloc failed! %" LOG_PUBLIC "u", totalSiz… in TranslateToInnerCurve25519Format()
Dhks_client_service_adapter_lite.c48 HKS_IF_NULL_RETURN(tmpBuf, HKS_ERROR_MALLOC_FAIL) in PkCtxToX509()
62 ret = HKS_ERROR_MALLOC_FAIL; in PkCtxToX509()
220 HKS_IF_NULL_LOGE_RETURN(x509Key->data, HKS_ERROR_MALLOC_FAIL, in Curve25519ToX509PublicKey()
313 HKS_IF_NULL_LOGE_RETURN(keyBuffer, HKS_ERROR_MALLOC_FAIL, in X509PublicKeyToRsa()
368 HKS_IF_NULL_LOGE_RETURN(keyBuffer, HKS_ERROR_MALLOC_FAIL, in X509PublicKeyToEcc()
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_client_service_ipc.c82 HKS_IF_NULL_RETURN(inBlob.data, HKS_ERROR_MALLOC_FAIL) in HksClientGenerateKey()
115 HKS_IF_NULL_RETURN(inBlob.data, HKS_ERROR_MALLOC_FAIL) in HksClientImportKey()
137 HKS_IF_NULL_RETURN(inBlob.data, HKS_ERROR_MALLOC_FAIL) in HksClientExportPublicKey()
162 HKS_IF_NULL_RETURN(inBlob.data, HKS_ERROR_MALLOC_FAIL) in HksClientImportWrappedKey()
194 HKS_IF_NULL_RETURN(inBlob.data, HKS_ERROR_MALLOC_FAIL) in HksClientGetKeyParamSet()
395 HKS_IF_NULL_RETURN(inBlob.data, HKS_ERROR_MALLOC_FAIL) in HksClientAgreeKey()
418 HKS_IF_NULL_RETURN(inBlob.data, HKS_ERROR_MALLOC_FAIL) in HksClientDeriveKey()
457 HKS_IF_NULL_RETURN(inBlob.data, HKS_ERROR_MALLOC_FAIL) in HksClientGetKeyInfoList()
469 return HKS_ERROR_MALLOC_FAIL; in HksClientGetKeyInfoList()
501 HKS_IF_NULL_RETURN(inBlob->data, HKS_ERROR_MALLOC_FAIL) in CertificateChainInitBlob()
[all …]
Dhks_samgr_client_proxy.c138 ret = HKS_ERROR_MALLOC_FAIL; in HksIpcCall()
149 ret = HKS_ERROR_MALLOC_FAIL; in HksIpcCall()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_attest_key_test_common.cpp114 return HKS_ERROR_MALLOC_FAIL; in ConstructDataToCertChain()
131 return HKS_ERROR_MALLOC_FAIL; in ConstructDataToCertChain()
139 return HKS_ERROR_MALLOC_FAIL; in ConstructDataToCertChain()
209 int32_t ret = HKS_ERROR_MALLOC_FAIL; in ValidateCertChainTest()
/base/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/
Dhks_chipset_platform_key_hardcoded.c54 …HKS_IF_NULL_LOGE_RETURN(fullHksPubKey->data, HKS_ERROR_MALLOC_FAIL, "malloc full hks public key fa… in MallocAndFillFullHksPublicKey()
86 HKS_IF_NULL_LOGE_RETURN(privateKey->data, HKS_ERROR_MALLOC_FAIL, "malloc private key failed") in MallocFullPlatformPrivateKey()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_session_manager.c117 HKS_IF_NULL_LOGE_RETURN(userId, HKS_ERROR_MALLOC_FAIL, "malloc operation userId failed") in ConstructOperationProcessInfo()
123 return HKS_ERROR_MALLOC_FAIL; in ConstructOperationProcessInfo()
155 HKS_IF_NULL_LOGE_RETURN(operation, HKS_ERROR_MALLOC_FAIL, "malloc hks operation failed") in CreateOperation()
Dhks_storage.c171 HKS_IF_NULL_LOGE_RETURN(outputBlob, HKS_ERROR_MALLOC_FAIL, "malloc failed") in ConstructBlob()
370 ret = HKS_ERROR_MALLOC_FAIL; in CleanFile()
453 HKS_IF_NULL_RETURN(buffer, HKS_ERROR_MALLOC_FAIL) in CopyKeyBlobFromSrc()
654 HKS_IF_NULL_RETURN(*data, HKS_ERROR_MALLOC_FAIL) in DataInit()
712 HKS_IF_NULL_RETURN(user, HKS_ERROR_MALLOC_FAIL) in MakeUserAndProcessNamePath()
853 HKS_IF_NULL_RETURN(name, HKS_ERROR_MALLOC_FAIL) in GetFileInfo()
916 HKS_IF_NULL_RETURN(outKeyAlias, HKS_ERROR_MALLOC_FAIL) in RecordKeyOperation()
1127 HKS_IF_NULL_RETURN(name, HKS_ERROR_MALLOC_FAIL) in GetFilePath()
1186 HKS_IF_NULL_LOGE_RETURN(*fileNameList, HKS_ERROR_MALLOC_FAIL, "malloc file name list failed.") in FileNameListInit()
1196 ret = HKS_ERROR_MALLOC_FAIL; in FileNameListInit()
[all …]
Dhks_storage_lite.c81 HKS_IF_NULL_RETURN(srcData.data, HKS_ERROR_MALLOC_FAIL) in CalcHeaderMac()
142 HKS_IF_NULL_RETURN(g_storageImageBuffer.data, HKS_ERROR_MALLOC_FAIL) in ApplyImageBuffer()
178 HKS_IF_NULL_RETURN(buf, HKS_ERROR_MALLOC_FAIL) in FreshImageBuffer()
221 HKS_IF_NULL_RETURN(buffer, HKS_ERROR_MALLOC_FAIL) in RefreshKeyInfoHeaderHmac()
390 HKS_IF_NULL_RETURN(buf, HKS_ERROR_MALLOC_FAIL) in AdjustImageBuffer()
547 HKS_IF_NULL_RETURN(tmpName, HKS_ERROR_MALLOC_FAIL) in GetFileName()
689 HKS_IF_NULL_RETURN(keyBlob->data, HKS_ERROR_MALLOC_FAIL) in HksStoreGetKeyBlob()
857 ret = HKS_ERROR_MALLOC_FAIL; in CleanFile()
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_get_key_info_list_test.cpp144 return HKS_ERROR_MALLOC_FAIL; in BuildKeyInfoList()
152 return HKS_ERROR_MALLOC_FAIL; in BuildKeyInfoList()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_mgr/
Dhks_samgr_service_feature.c115 return HKS_ERROR_MALLOC_FAIL; in ReadSrcDataFromReq()
150 ret = HKS_ERROR_MALLOC_FAIL; in Invoke()

12345