Home
last modified time | relevance | path

Searched refs:seedBlob (Results 1 – 3 of 3) sorted by relevance

/base/security/crypto_framework/test/fuzztest/rand/hcfrandcreate_fuzzer/
Dhcfrandcreate_fuzzer.cpp35 struct HcfBlob seedBlob = { 0 }; in HcfRandCreateFuzzTest() local
36 (void)randObj->setSeed(randObj, &seedBlob); in HcfRandCreateFuzzTest()
39 HcfBlobDataFree(&seedBlob); in HcfRandCreateFuzzTest()
/base/security/crypto_framework/test/unittest/src/
Dcrypto_rand_test.cpp118 struct HcfBlob *seedBlob = nullptr; variable
120 ret = randObj->setSeed(randObj, seedBlob);
135 struct HcfBlob seedBlob = { .data = nullptr, .len = 0 }; variable
137 ret = randObj->generateRandom(randObj, seedLen, &seedBlob);
140 ret = randObj->setSeed(randObj, &seedBlob);
143 HcfBlobDataClearAndFree(&seedBlob);
156 struct HcfBlob seedBlob = { .data = nullptr, .len = 0 }; variable
158 ret = randObj->generateRandom(randObj, seedLen, &seedBlob);
161 ret = randObj->setSeed(randObj, &seedBlob);
164 HcfBlobDataClearAndFree(&seedBlob);
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_rand.cpp39 HcfBlob *seedBlob = nullptr; member
61 if (context->seedBlob != nullptr) { in FreeCryptoFwkCtx()
62 HcfFree(context->seedBlob->data); in FreeCryptoFwkCtx()
63 context->seedBlob->data = nullptr; in FreeCryptoFwkCtx()
64 context->seedBlob->len = 0; in FreeCryptoFwkCtx()
65 HcfFree(context->seedBlob); in FreeCryptoFwkCtx()
66 context->seedBlob = nullptr; in FreeCryptoFwkCtx()
300 HcfBlob *seedBlob = GetBlobFromNapiValue(env, argv[PARAM0]); in JsSetSeed() local
314 HcfResult res = rand->setSeed(rand, seedBlob); in JsSetSeed()