/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/rand/src/ |
H A D | rand_openssl.c | 76 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 D | batch.cpp | 29 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 D | mbedtls_rand.c | 101 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 D | id_factory.h | 30 explicit IdFactory(T seed) : seed_(seed) {}
in IdFactory() argument
|
/base/security/crypto_framework/frameworks/crypto_operation/ |
H A D | rand.c | 102 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 D | app_event_stat.cpp | 32 std::random_device seed; in RandomNum() local 33 std::mt19937_64 gen(seed()); in RandomNum()
|
/base/security/crypto_framework/frameworks/cj/src/ |
H A D | random_impl.cpp | 57 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 D | iso_task_common.c | 328 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 D | rand_spi.h | 36 void (*engineSetSeed)(HcfRandSpi *self, HcfBlob *seed);
|
/base/security/crypto_framework/interfaces/inner_api/crypto_operation/ |
H A D | rand.h | 34 HcfResult (*setSeed)(HcfRand *self, HcfBlob *seed);
|
/base/security/crypto_framework/frameworks/cj/include/ |
H A D | random_impl.h | 33 void SetSeed(HcfBlob *seed, int32_t* errCode);
|
/base/security/device_auth/services/legacy/authenticators/inc/account_unrelated/iso_task/ |
H A D | iso_base_cur_task.h | 44 Uint8Buff seed; member
|
/base/security/device_auth/services/legacy/authenticators/inc/account_related/auth/iso_auth_task/ |
H A D | iso_auth_task_common.h | 31 uint8_t seed[SEED_SIZE]; member
|
/base/time/time_service/services/timer/include/ |
H A D | batch.h | 30 explicit Batch(const TimerInfo &seed);
|
/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/iso_auth_task/ |
H A D | iso_auth_client_task.c | 58 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 D | iso_auth_server_task.c | 50 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 D | iso_auth_task_common.c | 205 Uint8Buff seedBuf = { params->seed, sizeof(params->seed) }; in AccountAuthGeneratePsk()
|
/base/hiviewdfx/hitrace/frameworks/native/ |
H A D | hitracechainc.c | 209 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 D | identity_pin.c | 235 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 D | cert_operation.c | 752 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 D | identity_group.c | 479 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 D | iso_client_protocol_task.c | 65 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 D | hvb_rsa_verify.c | 135 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 D | hitracechainc_test.cpp | 72 const uint64_t seed = 131; in HashFunc() local 80 hash = (hash * seed) + (*p++); in HashFunc()
|
H A D | hitracechaincpp_test.cpp | 43 const uint64_t seed = 131; in HashFunc() local 51 hash = (hash * seed) + (*p++); in HashFunc()
|