Searched refs:randObj (Results 1 – 5 of 5) sorted by relevance
/base/security/crypto_framework/test/unittest/src/ |
D | crypto_rand_test.cpp | 63 HcfRand *randObj = nullptr; variable 64 HcfResult ret = HcfRandCreate(&randObj); 71 ret = randObj->generateRandom(randObj, randomLen, &randomBlob); 73 HcfObjDestroy(randObj); 79 HcfRand *randObj = nullptr; variable 80 HcfResult ret = HcfRandCreate(&randObj); 87 ret = randObj->generateRandom(randObj, randomLen, &randomBlob); 91 HcfObjDestroy(randObj); 97 HcfRand *randObj = nullptr; variable 98 HcfResult ret = HcfRandCreate(&randObj); [all …]
|
/base/security/crypto_framework/test/fuzztest/rand/hcfrandcreate_fuzzer/ |
D | hcfrandcreate_fuzzer.cpp | 28 HcfRand *randObj = nullptr; in HcfRandCreateFuzzTest() local 29 HcfResult res = HcfRandCreate(&randObj); in HcfRandCreateFuzzTest() 34 (void)randObj->generateRandom(randObj, size, &randomBlob); in HcfRandCreateFuzzTest() 36 (void)randObj->setSeed(randObj, &seedBlob); in HcfRandCreateFuzzTest() 39 HcfObjDestroy(randObj); in HcfRandCreateFuzzTest()
|
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
D | napi_rand.cpp | 122 NapiRand::NapiRand(HcfRand *randObj) in NapiRand() argument 124 this->randObj_ = randObj; in NapiRand() 136 HcfRand *randObj = randClass->GetRand(); in GenerateRandomExecute() local 145 context->errCode = randObj->generateRandom(randObj, numBytes, randBlob); in GenerateRandomExecute() 228 HcfRand *randObj = GetRand(); in SetSeed() local 229 HcfResult res = randObj->setSeed(randObj, seedBlob); in SetSeed() 241 NapiRand *randObj = nullptr; in NapiGenerateRandom() local 242 napi_unwrap(env, thisVar, reinterpret_cast<void **>(&randObj)); in NapiGenerateRandom() 243 if (randObj == nullptr) { in NapiGenerateRandom() 247 return randObj->GenerateRandom(env, info); in NapiGenerateRandom() [all …]
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_crypto_operation.c | 29 HcfRand *randObj = NULL; in CmGetRandom() local 34 int32_t retHcf = (int32_t)HcfRandCreate(&randObj); in CmGetRandom() 40 retHcf = (int32_t)randObj->generateRandom(randObj, random->size, &randomBlob); in CmGetRandom() 55 HcfObjDestroy(randObj); in CmGetRandom()
|
/base/security/crypto_framework/frameworks/js/napi/crypto/inc/ |
D | napi_rand.h | 31 explicit NapiRand(HcfRand *randObj);
|