Searched refs:szOut (Results 1 – 4 of 4) sorted by relevance
/foundation/distributedhardware/devicemanager/utils/src/ |
D | dm_random.cpp | 88 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/ |
D | encrypt_utils.cpp | 126 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/ |
D | dm_random.h | 26 bool MbedtlsGenRandomStr(char *szOut, int32_t szOutLen, bool numberOnly);
|
/foundation/distributedhardware/devicemanager/ext/mini/utils/include/cipher/ |
D | encrypt_utils.h | 42 static bool MbedtlsGenRandomStr(char *szOut, int32_t szOutLen, bool numberOnly);
|