Searched refs:randomLen (Results 1 – 10 of 10) sorted by relevance
/ohos5.0/base/security/crypto_framework/test/unittest/src/ |
H A D | crypto_rand_test.cpp | 67 int32_t randomLen = 0; variable 71 ret = randObj->generateRandom(randObj, randomLen, &randomBlob); 83 int32_t randomLen = 32; variable 87 ret = randObj->generateRandom(randObj, randomLen, &randomBlob); 101 int32_t randomLen = INT_MAX; variable 105 (void)randObj->generateRandom(randObj, randomLen, &randomBlob); 199 int32_t randomLen = 32; variable 201 ret = randObj->generateRandom(&invalidRandObj, randomLen, &randomBlob);
|
/ohos5.0/base/security/asset/frameworks/os_dependency/openssl/src/ |
H A D | openssl_wrapper.c | 38 int32_t GenerateRandom(uint8_t *random, uint32_t randomLen) in GenerateRandom() argument 40 if (RAND_priv_bytes(random, randomLen) < 0) { in GenerateRandom()
|
/ohos5.0/docs/zh-cn/application-dev/security/CryptoArchitectureKit/ |
H A D | crypto-aes-sym-encrypt-decrypt-gcm-by-segment-ndk.md | 88 int32_t randomLen = strlen(plainText); 89 int cnt = randomLen / blockSize; 90 int rem = randomLen % blockSize;
|
H A D | crypto-sm4-sym-encrypt-decrypt-gcm-by-segment-ndk.md | 86 int32_t randomLen = strlen(plainText); 87 int cnt = randomLen / blockSize; 88 int rem = randomLen % blockSize;
|
/ohos5.0/base/security/asset/frameworks/os_dependency/openssl/inc/ |
H A D | openssl_wrapper.h | 28 int32_t GenerateRandom(uint8_t *random, uint32_t randomLen);
|
/ohos5.0/docs/en/application-dev/security/CryptoArchitectureKit/ |
H A D | crypto-aes-sym-encrypt-decrypt-gcm-by-segment-ndk.md | 87 int32_t randomLen = strlen(plainText); 88 int cnt = randomLen / blockSize; 89 int rem = randomLen % blockSize;
|
H A D | crypto-sm4-sym-encrypt-decrypt-gcm-by-segment-ndk.md | 86 int32_t randomLen = strlen(plainText); 87 int cnt = randomLen / blockSize; 88 int rem = randomLen % blockSize;
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_tool.h | 149 void SMP_ConstituteC1Step1Param(uint8_t role, const uint8_t *random, uint8_t randomLen, SMP_CryptC1…
|
H A D | smp_tool.c | 232 void SMP_ConstituteC1Step1Param(uint8_t role, const uint8_t *random, uint8_t randomLen, SMP_CryptC1… in SMP_ConstituteC1Step1Param() argument 269 (void)memcpy_s(param->r, SMP_RANDOM_DATA_LEN, random, randomLen); in SMP_ConstituteC1Step1Param()
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ |
H A D | p2p_state_machine.cpp | 170 constexpr size_t randomLen = 4; in InitializeThisDevice() local 178 deviceName = std::string("OHOS_") + GetRandomStr(randomLen); in InitializeThisDevice()
|