Home
last modified time | relevance | path

Searched refs:seed (Results 1 - 25 of 29) sorted by relevance

12

/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/rand/src/
H A Drand_openssl.c76 static void OpensslSetSeed(HcfRandSpi *self, HcfBlob *seed) in OpensslSetSeed() argument
79 if (seed == NULL) { in OpensslSetSeed()
80 LOGE("The seed is NULL!"); in OpensslSetSeed()
83 OpensslRandSeed(seed->data, seed->len); in OpensslSetSeed()
/base/time/time_service/services/timer/src/
H A Dbatch.cpp29 Batch::Batch(const TimerInfo &seed) in Batch() argument
30 : start_ {seed.whenElapsed}, in Batch()
31 end_ {seed.maxWhenElapsed},
32 flags_ {seed.flags},
33 alarms_ {std::make_shared<TimerInfo>(seed)}
/base/security/crypto_framework/plugin/mbedtls_plugin/rand/src/
H A Dmbedtls_rand.c101 static void MbedtlsSetSeed(HcfRandSpi *self, HcfBlob *seed) in MbedtlsSetSeed() argument
103 if ((self == NULL) || (seed == NULL)) { in MbedtlsSetSeed()
107 if ((seed->data == NULL) || (seed->len == 0)) { in MbedtlsSetSeed()
122 (const unsigned char *)seed->data, seed->len); in MbedtlsSetSeed()
124 LOGE("seed return is %d error!", ret); in MbedtlsSetSeed()
173 LOGE("Failed seed ret is %d!", ret); in MbedtlsRandInitEx()
/base/msdp/device_status/utils/common/include/
H A Did_factory.h30 explicit IdFactory(T seed) : seed_(seed) {} in IdFactory() argument
/base/security/crypto_framework/frameworks/crypto_operation/
H A Drand.c102 static HcfResult SetSeed(HcfRand *self, HcfBlob *seed) in SetSeed() argument
104 if ((self == NULL) || (!HcfIsBlobValid(seed)) || (seed->len > INT_MAX)) { in SetSeed()
113 ((HcfRandImpl *)self)->spiObj, seed); in SetSeed()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
H A Dapp_event_stat.cpp32 std::random_device seed; in RandomNum() local
33 std::mt19937_64 gen(seed()); in RandomNum()
/base/security/crypto_framework/frameworks/cj/src/
H A Drandom_impl.cpp57 void RandomImpl::SetSeed(HcfBlob *seed, int32_t* errCode) in SetSeed() argument
64 HcfResult res = randObj_->setSeed(randObj_, seed); in SetSeed()
66 LOGE("set seed failed."); in SetSeed()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_task_common/
H A Diso_task_common.c328 if (params->seed.val != NULL) { in DestroyIsoParams()
329 HcFree(params->seed.val); in DestroyIsoParams()
330 params->seed.val = NULL; in DestroyIsoParams()
474 params->seed.val = (uint8_t *)HcMalloc(SEED_LEN, 0); in AllocSeed()
475 if (params->seed.val == NULL) { in AllocSeed()
476 LOGE("Malloc for seed failed."); in AllocSeed()
479 params->seed.length = SEED_LEN; in AllocSeed()
571 static int AuthGeneratePsk(const Uint8Buff *seed, IsoParams *params) in AuthGeneratePsk() argument
591 return params->baseParams.loader->computeHmacWithThreeStage(&keyAliasParams, seed, &pskBuf); in AuthGeneratePsk()
594 return params->baseParams.loader->computeHmac(&keyAliasParams, seed, in AuthGeneratePsk()
598 AuthGeneratePskUsePin(const Uint8Buff *seed, IsoParams *params, const char *pinString) AuthGeneratePskUsePin() argument
[all...]
/base/security/crypto_framework/frameworks/spi/
H A Drand_spi.h36 void (*engineSetSeed)(HcfRandSpi *self, HcfBlob *seed);
/base/security/crypto_framework/interfaces/inner_api/crypto_operation/
H A Drand.h34 HcfResult (*setSeed)(HcfRand *self, HcfBlob *seed);
/base/security/crypto_framework/frameworks/cj/include/
H A Drandom_impl.h33 void SetSeed(HcfBlob *seed, int32_t* errCode);
/base/security/device_auth/services/legacy/authenticators/inc/account_unrelated/iso_task/
H A Diso_base_cur_task.h44 Uint8Buff seed; member
/base/security/device_auth/services/legacy/authenticators/inc/account_related/auth/iso_auth_task/
H A Diso_auth_task_common.h31 uint8_t seed[SEED_SIZE]; member
/base/time/time_service/services/timer/include/
H A Dbatch.h30 explicit Batch(const TimerInfo &seed);
/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/iso_auth_task/
H A Diso_auth_client_task.c58 if (AddByteToJson(data, FIELD_SEED, params->seed, sizeof(params->seed)) != CLIB_SUCCESS) { in AddBeginDataToJson()
59 LOGE("Add seed to json failed."); in AddBeginDataToJson()
125 Uint8Buff seedBuff = { params->seed, sizeof(params->seed) }; in AccountAuthGenSeed()
128 LOGE("GenerateRandom for seed failed, res: %d.", res); in AccountAuthGenSeed()
H A Diso_auth_server_task.c50 if (GetByteFromJson(in, FIELD_SEED, params->seed, sizeof(params->seed)) != CLIB_SUCCESS) { in ParseIsoAuthClientBeginMsg()
51 LOGE("Get seed from json failed for server."); in ParseIsoAuthClientBeginMsg()
H A Diso_auth_task_common.c205 Uint8Buff seedBuf = { params->seed, sizeof(params->seed) }; in AccountAuthGeneratePsk()
/base/hiviewdfx/hitrace/frameworks/native/
H A Dhitracechainc.c209 const uint32_t seed = 131; in HashFunc() local
220 hash = (hash * seed) + (*p++); in HashFunc()
/base/security/device_auth/services/identity_manager/src/
H A Didentity_pin.c235 static int32_t AuthGeneratePskUsePin(const CJson *in, const Uint8Buff *seed, const char *pinCode, in AuthGeneratePskUsePin() argument
252 return GetLoaderInstance()->computeHmac(&keyParams, seed, sharedSecret); in AuthGeneratePskUsePin()
287 LOGE("Failed to alloc seed memory!"); in GetSharedSecretForPinInIso()
293 LOGE("Failed to get seed!"); in GetSharedSecretForPinInIso()
H A Dcert_operation.c752 uint8_t seed[SEED_SIZE] = { 0 }; in GetAccountSymSharedSecret() local
753 Uint8Buff seedBuff = { seed, SEED_SIZE }; in GetAccountSymSharedSecret()
754 ret = GetByteFromJson(in, FIELD_SEED, seed, SEED_SIZE); in GetAccountSymSharedSecret()
756 LOGE("Failed to get seed!"); in GetAccountSymSharedSecret()
H A Didentity_group.c479 static int32_t AuthGeneratePsk(const CJson *in, const char *groupId, const Uint8Buff *seed, Uint8Buff *sharedSecret) in AuthGeneratePsk() argument
512 ret = GetLoaderInstance()->computeHmacWithThreeStage(&keyAliasParams, seed, sharedSecret); in AuthGeneratePsk()
515 ret = GetLoaderInstance()->computeHmac(&keyAliasParams, seed, sharedSecret); in AuthGeneratePsk()
525 LOGE("Failed to alloc memory for seed!"); in GetSharedSecretForP2pInIso()
531 LOGE("Failed to get seed!"); in GetSharedSecretForP2pInIso()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_protocol_task/
H A Diso_client_protocol_task.c65 GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_SEED, params->seed.val, params->seed.length), res); in IsoClientStartPackData()
/base/startup/hvb/libhvb/src/crypto/
H A Dhvb_rsa_verify.c135 static int rsa_gen_mask_mgf_v1(uint8_t *seed, uint32_t seed_len, in rsa_gen_mask_mgf_v1() argument
169 if (hvb_memcpy_s(pc, seed_len, seed, seed_len) != 0) { in rsa_gen_mask_mgf_v1()
/base/hiviewdfx/hitrace/test/unittest/common/native/
H A Dhitracechainc_test.cpp72 const uint64_t seed = 131; in HashFunc() local
80 hash = (hash * seed) + (*p++); in HashFunc()
H A Dhitracechaincpp_test.cpp43 const uint64_t seed = 131; in HashFunc() local
51 hash = (hash * seed) + (*p++); in HashFunc()

Completed in 14 milliseconds

12