Home
last modified time | relevance | path

Searched refs:HCF_ERR_MALLOC (Results 1 – 25 of 41) sorted by relevance

12

/base/security/crypto_framework/frameworks/key/
Dasy_key_generator.c413 return HCF_ERR_MALLOC; in CopyAsyKeyParamsSpec()
429 return HCF_ERR_MALLOC; in CopyDsaCommonSpec()
435 return HCF_ERR_MALLOC; in CopyDsaCommonSpec()
441 return HCF_ERR_MALLOC; in CopyDsaCommonSpec()
457 return HCF_ERR_MALLOC; in CreateDsaCommonSpecImpl()
474 return HCF_ERR_MALLOC; in CreateDsaPubKeySpecImpl()
485 return HCF_ERR_MALLOC; in CreateDsaPubKeySpecImpl()
499 return HCF_ERR_MALLOC; in CreateDsaKeyPairSpecImpl()
510 return HCF_ERR_MALLOC; in CreateDsaKeyPairSpecImpl()
518 return HCF_ERR_MALLOC; in CreateDsaKeyPairSpecImpl()
[all …]
/base/security/crypto_framework/interfaces/innerkits/common/
Dresult.h28 HCF_ERR_MALLOC = 20001, enumerator
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/md/src/
Dmd_openssl.c100 return HCF_ERR_MALLOC; in OpensslEngineDoFinalMd()
146 return HCF_ERR_MALLOC; in OpensslMdSpiCreate()
152 return HCF_ERR_MALLOC; in OpensslMdSpiCreate()
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/
Dsym_key_openssl.c55 return HCF_ERR_MALLOC; in GetEncoded()
121 return HCF_ERR_MALLOC; in RandomSymmKey()
243 return HCF_ERR_MALLOC; in CopySymmKey()
264 return HCF_ERR_MALLOC; in GenerateSymmKey()
303 return HCF_ERR_MALLOC; in ConvertSymmKey()
331 return HCF_ERR_MALLOC; in HcfSymKeyGeneratorSpiCreate()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/rand/src/
Drand_openssl.c47 return HCF_ERR_MALLOC; in OpensslGenerateRandom()
103 return HCF_ERR_MALLOC; in HcfRandSpiCreate()
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
Dopenssl_common.c147 return HCF_ERR_MALLOC; in GetRsaSpecStringMd()
164 return HCF_ERR_MALLOC; in GetRsaSpecStringMGF()
276 return HCF_ERR_MALLOC; in BigNumToBigInteger()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/
Decdsa_openssl.c199 return HCF_ERR_MALLOC; in EngineSignDoFinal()
334 return HCF_ERR_MALLOC; in HcfSignSpiEcdsaCreate()
347 return HCF_ERR_MALLOC; in HcfSignSpiEcdsaCreate()
374 return HCF_ERR_MALLOC; in HcfVerifySpiEcdsaCreate()
387 return HCF_ERR_MALLOC; in HcfVerifySpiEcdsaCreate()
Dsm2_openssl.c219 return HCF_ERR_MALLOC; in EngineSignDoFinal()
358 return HCF_ERR_MALLOC; in HcfSignSpiSm2Create()
371 return HCF_ERR_MALLOC; in HcfSignSpiSm2Create()
398 return HCF_ERR_MALLOC; in HcfVerifySpiSm2Create()
411 return HCF_ERR_MALLOC; in HcfVerifySpiSm2Create()
Ddsa_openssl.c374 return HCF_ERR_MALLOC; in EngineDsaSignDoFinal()
416 return HCF_ERR_MALLOC; in EngineDsaSignWithoutDigestDoFinal()
544 return HCF_ERR_MALLOC; in HcfSignSpiDsaCreate()
566 return HCF_ERR_MALLOC; in HcfSignSpiDsaCreate()
590 return HCF_ERR_MALLOC; in HcfVerifySpiDsaCreate()
610 return HCF_ERR_MALLOC; in HcfVerifySpiDsaCreate()
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
Ddsa_asy_key_generator_openssl.c361 ret = HCF_ERR_MALLOC; in GenerateDsaEvpKey()
430 return HCF_ERR_MALLOC; in CreateDsaPubKey()
444 return HCF_ERR_MALLOC; in CreateDsaPriKey()
459 return HCF_ERR_MALLOC; in CreateDsaKeyPair()
650 return HCF_ERR_MALLOC; in CreateDsaKeyPairByCommSpec()
664 return HCF_ERR_MALLOC; in CreateDsaKeyPairByCommSpec()
670 return HCF_ERR_MALLOC; in CreateDsaKeyPairByCommSpec()
684 return HCF_ERR_MALLOC; in CreateDsaPubKeyByKeyPairSpec()
698 return HCF_ERR_MALLOC; in CreateDsaPriKeyByKeyPairSpec()
745 return HCF_ERR_MALLOC; in CreateDsaPubKeyByPubKeySpec()
[all …]
Drsa_asy_key_generator_openssl.c312 return HCF_ERR_MALLOC; in CopyMemFromBIO()
513 return HCF_ERR_MALLOC; in PackPubKey()
538 return HCF_ERR_MALLOC; in PackPriKey()
590 return HCF_ERR_MALLOC; in PackKeyPair()
631 return HCF_ERR_MALLOC; in GenerateKeyPair()
729 return HCF_ERR_MALLOC; in ConvertPriKey()
784 return HCF_ERR_MALLOC; in EngineConvertKey()
876 return HCF_ERR_MALLOC; in GenerateKeyPairBySpec()
1058 return HCF_ERR_MALLOC; in DecodeParams()
1090 return HCF_ERR_MALLOC; in HcfAsyKeyGeneratorSpiRsaCreate()
Dsm2_asy_key_generator_openssl.c271 return HCF_ERR_MALLOC; in PackSm2PubKey()
291 return HCF_ERR_MALLOC; in PackSm2PriKey()
313 return HCF_ERR_MALLOC; in PackSm2KeyPair()
485 return HCF_ERR_MALLOC; in HcfAsyKeyGeneratorSpiSm2Create()
Decc_asy_key_generator_openssl.c252 return HCF_ERR_MALLOC; in SetEcPointToGroup()
303 res = HCF_ERR_MALLOC; in GenerateEcGroupWithParamsSpec()
986 return HCF_ERR_MALLOC; in GetFieldType()
1026 return HCF_ERR_MALLOC; in GetCurveName()
1211 return HCF_ERR_MALLOC; in PackEccPubKey()
1220 return HCF_ERR_MALLOC; in PackEccPubKey()
1247 return HCF_ERR_MALLOC; in PackEccPriKey()
1256 return HCF_ERR_MALLOC; in PackEccPriKey()
1284 return HCF_ERR_MALLOC; in PackEccKeyPair()
1436 return HCF_ERR_MALLOC; in CreateAndAssignKeyPair()
[all …]
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
Dcipher_aes_openssl.c287 return HCF_ERR_MALLOC; in InitAadAndTagFromGcmParams()
301 return HCF_ERR_MALLOC; in InitAadAndTagFromGcmParams()
317 return HCF_ERR_MALLOC; in InitAadAndTagFromCcmParams()
331 return HCF_ERR_MALLOC; in InitAadAndTagFromCcmParams()
340 HcfResult ret = HCF_ERR_MALLOC; in InitCipherData()
473 return HCF_ERR_MALLOC; in AllocateOutput()
561 return HCF_ERR_MALLOC; in AllocateCcmOutput()
674 return HCF_ERR_MALLOC; in AllocateGcmOutput()
767 return HCF_ERR_MALLOC; in HcfCipherAesGeneratorSpiCreate()
Dcipher_sm4_openssl.c137 HcfResult ret = HCF_ERR_MALLOC; in InitCipherData()
146 return HCF_ERR_MALLOC; in InitCipherData()
256 return HCF_ERR_MALLOC; in AllocateOutput()
380 return HCF_ERR_MALLOC; in HcfCipherSm4GeneratorSpiCreate()
Dcipher_3des_openssl.c76 return HCF_ERR_MALLOC; in InitCipherData()
155 return HCF_ERR_MALLOC; in AllocateOutput()
288 return HCF_ERR_MALLOC; in HcfCipherDesGeneratorSpiCreate()
Dcipher_rsa_openssl.c82 return HCF_ERR_MALLOC; in DuplicateRsaFromKey()
169 return HCF_ERR_MALLOC; in SetPsourceFromBlob()
259 return HCF_ERR_MALLOC; in SetRsaCipherSpecUint8Array()
303 return HCF_ERR_MALLOC; in GetRsaCipherSpecUint8Array()
519 return HCF_ERR_MALLOC; in HcfCipherRsaCipherSpiCreate()
Dcipher_sm2_openssl.c149 return HCF_ERR_MALLOC; in DoSm2EncryptAndDecrypt()
242 return HCF_ERR_MALLOC; in HcfCipherSm2CipherSpiCreate()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_asy_key_spec_generator.cpp143 … napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi key pair failed!")); in GenKeyPairAsyncWorkReturn()
192 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi pub key failed!")); in PubKeyAsyncWorkReturn()
242 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi pri key failed!")); in PriKeyAsyncWorkReturn()
370 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsGenerateKeyPair()
389 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsGeneratePubKey()
408 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsGeneratePriKey()
465 …napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi asy key generator by spec fai… in CreateJsAsyKeyGeneratorBySpec()
Dnapi_asy_key_generator.cpp284 … napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi key pair failed!")); in GenKeyPairAsyncWorkReturn()
334 … napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi key pair failed!")); in ConvertKeyAsyncWorkReturn()
435 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc ctx fail.")); in JsGenerateKeyPair()
454 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "create context fail!")); in JsConvertKey()
529 …napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi asy key napi generator failed… in CreateJsAsyKeyGenerator()
Dnapi_sym_key_generator.cpp199 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi sym key failed.")); in AsyncKeyReturn()
317 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "Create context failed!")); in JsGenerateSymKey()
342 …napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc SymKeyGeneratorFwkCtx failed!")… in JsConvertKey()
404 … napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new napi sym key generator failed.")); in CreateSymKeyGenerator()
Dnapi_md.cpp125 context->errCode = HCF_ERR_MALLOC; in MdDoFinalExecute()
299 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMdUpdate()
318 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMdDoFinal()
419 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new md napi obj failed!")); in CreateMd()
Dnapi_mac.cpp167 context->errCode = HCF_ERR_MALLOC; in MacDoFinalExecute()
388 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMacInit()
407 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMacUpdate()
426 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "malloc context failed")); in JsMacDoFinal()
526 napi_throw(env, GenerateBusinessError(env, HCF_ERR_MALLOC, "new mac napi obj failed.")); in CreateMac()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/key_agreement/src/
Decdh_openssl.c101 return HCF_ERR_MALLOC; in EcdhDerive()
180 return HCF_ERR_MALLOC; in HcfKeyAgreementSpiEcdhCreate()
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/hmac/src/
Dmac_openssl.c127 return HCF_ERR_MALLOC; in OpensslEngineDoFinalMac()
168 return HCF_ERR_MALLOC; in OpensslMacSpiCreate()

12