Home
last modified time | relevance | path

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

/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_rand.cpp40 HcfBlob *seedBlob = nullptr; member
66 if (context->seedBlob != nullptr) { in FreeCryptoFwkCtx()
67 HcfFree(context->seedBlob->data); in FreeCryptoFwkCtx()
69 context->seedBlob->len = 0; in FreeCryptoFwkCtx()
70 HcfFree(context->seedBlob); in FreeCryptoFwkCtx()
71 context->seedBlob = nullptr; in FreeCryptoFwkCtx()
310 if (seedBlob == nullptr) { in JsSetSeed()
318 HcfFree(seedBlob); in JsSetSeed()
326 HcfFree(seedBlob); in JsSetSeed()
334 HcfFree(seedBlob); in JsSetSeed()
[all …]
/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A 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);
/ohos5.0/base/security/crypto_framework/test/fuzztest/rand/hcfrandcreate_fuzzer/
H A Dhcfrandcreate_fuzzer.cpp35 struct HcfBlob seedBlob = { 0 }; in HcfRandCreateFuzzTest() local
36 (void)randObj->setSeed(randObj, &seedBlob); in HcfRandCreateFuzzTest()
39 HcfBlobDataFree(&seedBlob); in HcfRandCreateFuzzTest()