Home
last modified time | relevance | path

Searched refs:szOut (Results 1 – 4 of 4) sorted by relevance

/foundation/distributedhardware/devicemanager/utils/src/
Ddm_random.cpp88 bool MbedtlsGenRandomStr(char *szOut, int32_t szOutLen, bool numberOnly) in MbedtlsGenRandomStr() argument
91 if (szOut == nullptr || szOutLen <= MIN_OUT_LENGTH) { in MbedtlsGenRandomStr()
94 szOut[--szOutLen] = 0; in MbedtlsGenRandomStr()
95 GetRandomData((uint8_t *)szOut, (uint32_t)szOutLen); in MbedtlsGenRandomStr()
101 uint32_t idx = ((uint32_t)szOut[i] % tmpNum); in MbedtlsGenRandomStr()
112 szOut[i] = base + idx; in MbedtlsGenRandomStr()
/foundation/distributedhardware/devicemanager/ext/mini/utils/src/cipher/
Dencrypt_utils.cpp126 bool EncryptUtils::MbedtlsGenRandomStr(char *szOut, int32_t szOutLen, bool numberOnly) in MbedtlsGenRandomStr() argument
129 if (szOut == nullptr || szOutLen <= MIN_OUT_LENGTH) { in MbedtlsGenRandomStr()
132 szOut[--szOutLen] = 0; in MbedtlsGenRandomStr()
133 GetRandomData((uint8_t*)szOut, szOutLen); in MbedtlsGenRandomStr()
140 uint32_t idx = ((uint32_t)szOut[i] % M); in MbedtlsGenRandomStr()
151 szOut[i] = base + idx; in MbedtlsGenRandomStr()
/foundation/distributedhardware/devicemanager/utils/include/
Ddm_random.h26 bool MbedtlsGenRandomStr(char *szOut, int32_t szOutLen, bool numberOnly);
/foundation/distributedhardware/devicemanager/ext/mini/utils/include/cipher/
Dencrypt_utils.h42 static bool MbedtlsGenRandomStr(char *szOut, int32_t szOutLen, bool numberOnly);