/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/rand/src/ |
D | rand_openssl.c | 34 static HcfResult OpensslGenerateRandom(HcfRandSpi *self, int32_t numBytes, HcfBlob *random) in OpensslGenerateRandom() argument 40 if (numBytes <= 0) { in OpensslGenerateRandom() 44 random->data = (uint8_t *)HcfMalloc(numBytes, 0); in OpensslGenerateRandom() 49 int32_t ret = Openssl_RAND_priv_bytes(random->data, numBytes); in OpensslGenerateRandom() 58 random->len = numBytes; in OpensslGenerateRandom()
|
/base/update/sys_installer/services/module_update/util/src/ |
D | module_hvb_ops.cpp | 35 static bool ParseReadParam(const std::string &path, const int64_t offset, const uint64_t numBytes, … in ParseReadParam() argument 58 if (outCount > numBytes) { in ParseReadParam() 59 outCount = numBytes; in ParseReadParam() 65 …struct hvb_ops *ops, const char *partition, int64_t offset, uint64_t numBytes, void *buf, uint64_t… in HvbReadFromPartition() argument 84 if (!ParseReadParam(path, offset, numBytes, realOffset, count)) { in HvbReadFromPartition() 105 struct hvb_ops *ops, const char *partition, int64_t offset, uint64_t numBytes, const void *buf) in HvbWriteToPartition() argument
|
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/ |
D | hvb_ops.c | 46 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/telephony/core_service/services/sim/src/ |
D | ruim_file.cpp | 309 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/crypto_operation/ |
D | rand.c | 63 static HcfResult GenerateRandom(HcfRand *self, int32_t numBytes, HcfBlob *random) in GenerateRandom() argument 69 if (numBytes <= 0) { in GenerateRandom() 78 ((HcfRandImpl *)self)->spiObj, numBytes, random); in GenerateRandom()
|
/base/security/crypto_framework/frameworks/spi/ |
D | rand_spi.h | 33 HcfResult (*engineGenerateRandom)(HcfRandSpi *self, int32_t numBytes, HcfBlob *random);
|
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
D | napi_rand.cpp | 38 int32_t numBytes = 0; member 119 int32_t numBytes = context->numBytes; in GenerateRandomExecute() local 120 context->errCode = randObj->generateRandom(randObj, numBytes, randBlob); in GenerateRandomExecute() 158 if (!GetInt32FromJSParams(env, argv[PARAM0], context->numBytes)) { in BuildGenerateRandomCtx() 254 int32_t numBytes = 0; in JsGenerateRandomSync() local 255 if (!GetInt32FromJSParams(env, argv[PARAM0], numBytes)) { in JsGenerateRandomSync() 274 HcfResult res = rand->generateRandom(rand, numBytes, &randBlob); in JsGenerateRandomSync()
|
/base/security/crypto_framework/interfaces/innerkits/crypto_operation/ |
D | rand.h | 32 HcfResult (*generateRandom)(HcfRand *self, int32_t numBytes, HcfBlob *random);
|