Home
last modified time | relevance | path

Searched refs:randomLen (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_rand_test.cpp67 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 Dopenssl_wrapper.c38 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 Dcrypto-aes-sym-encrypt-decrypt-gcm-by-segment-ndk.md88 int32_t randomLen = strlen(plainText);
89 int cnt = randomLen / blockSize;
90 int rem = randomLen % blockSize;
H A Dcrypto-sm4-sym-encrypt-decrypt-gcm-by-segment-ndk.md86 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 Dopenssl_wrapper.h28 int32_t GenerateRandom(uint8_t *random, uint32_t randomLen);
/ohos5.0/docs/en/application-dev/security/CryptoArchitectureKit/
H A Dcrypto-aes-sym-encrypt-decrypt-gcm-by-segment-ndk.md87 int32_t randomLen = strlen(plainText);
88 int cnt = randomLen / blockSize;
89 int rem = randomLen % blockSize;
H A Dcrypto-sm4-sym-encrypt-decrypt-gcm-by-segment-ndk.md86 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 Dsmp_tool.h149 void SMP_ConstituteC1Step1Param(uint8_t role, const uint8_t *random, uint8_t randomLen, SMP_CryptC1…
H A Dsmp_tool.c232 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 Dp2p_state_machine.cpp170 constexpr size_t randomLen = 4; in InitializeThisDevice() local
178 deviceName = std::string("OHOS_") + GetRandomStr(randomLen); in InitializeThisDevice()