Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 7 of 7) sorted by relevance

/base/security/crypto_framework/plugin/openssl_plugin/rand/src/
Drand_openssl.c35 static HcfResult OpensslGenerateRandom(HcfRandSpi *self, int32_t numBytes, HcfBlob *random) in OpensslGenerateRandom() argument
37 unsigned char randBuf[numBytes]; in OpensslGenerateRandom()
38 int32_t ret = RAND_priv_bytes(randBuf, numBytes); in OpensslGenerateRandom()
44 random->data = (uint8_t *)HcfMalloc(numBytes, 0); in OpensslGenerateRandom()
49 (void)memcpy_s(random->data, numBytes, randBuf, numBytes); in OpensslGenerateRandom()
50 random->len = numBytes; in OpensslGenerateRandom()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
Dhvb_ops.c46 int64_t offset, uint64_t numBytes, in HvbReadFromPartition() argument
105 ssize_t numRead = read(fd, buf, numBytes); in HvbReadFromPartition()
106 if (numRead < 0 || (size_t)numRead != numBytes) { in HvbReadFromPartition()
107 BEGET_LOGE("Failed to read %lld bytes from %s offset %lld", numBytes, in HvbReadFromPartition()
133 int64_t offset, uint64_t numBytes, in HvbWriteToPartition() argument
/base/security/crypto_framework/frameworks/rand/
Drand.c61 static HcfResult GenerateRandom(HcfRand *self, int32_t numBytes, HcfBlob *random) in GenerateRandom() argument
63 if ((self == NULL) || (numBytes <= 0) || (numBytes > HCF_MAX_BUFFER_LEN) || (random == NULL)) { in GenerateRandom()
72 ((HcfRandImpl *)self)->spiObj, numBytes, random); in GenerateRandom()
/base/telephony/core_service/services/sim/src/
Druim_file.cpp309 int numBytes = 0; in ProcessGetSpnDone() local
311 for (numBytes = 0; numBytes < spnDataLen; numBytes++) { in ProcessGetSpnDone()
312 if ((spnData[numBytes] & BYTE_NUM) == BYTE_NUM) { in ProcessGetSpnDone()
317 if (numBytes == 0) { in ProcessGetSpnDone()
322 ParseSpnName(encoding, spnData, numBytes); in ProcessGetSpnDone()
/base/security/crypto_framework/frameworks/spi/
Drand_spi.h29 HcfResult (*engineGenerateRandom)(HcfRandSpi *self, int32_t numBytes, HcfBlob *random);
/base/security/crypto_framework/interfaces/innerkits/rand/
Drand.h30 HcfResult (*generateRandom)(HcfRand *self, int32_t numBytes, HcfBlob *random);
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_rand.cpp39 uint32_t numBytes = 0; member
144 uint32_t numBytes = context->numBytes; in GenerateRandomExecute() local
145 context->errCode = randObj->generateRandom(randObj, numBytes, randBlob); in GenerateRandomExecute()
192 if (!GetUint32FromJSParams(env, argv[PARAM0], context->numBytes, false)) { in GenerateRandom()