Home
last modified time | relevance | path

Searched refs:outBuf (Results 1 – 8 of 8) sorted by relevance

/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/
Dcm_x509.c57 int32_t GetX509SerialNumber(X509 *x509cert, char *outBuf, uint32_t outBufMaxSize) in GetX509SerialNumber() argument
59 if (outBuf == NULL || x509cert == NULL) { in GetX509SerialNumber()
83 if (strncpy_s(outBuf, outBufMaxSize, hex, len) != EOK) { in GetX509SerialNumber()
93 static int32_t ToStringName(FUNC func, const X509 *x509cert, const char *objname, char *outBuf, uin… in ToStringName() argument
96 if (func == NULL || x509cert == NULL || outBuf == NULL || outBufMaxSize == 0) { in ToStringName()
118 if (strncpy_s(outBuf, outBufMaxSize, data, length) != EOK) { in ToStringName()
129 static int32_t GetX509IssueName(const X509 *x509cert, const char *issuerObjName, char *outBuf, uint… in GetX509IssueName() argument
131 return ToStringName(X509_get_issuer_name, x509cert, issuerObjName, outBuf, outBufMaxSize); in GetX509IssueName()
134 int32_t GetX509SubjectName(const X509 *x509cert, const char *subjectObjName, char *outBuf, uint32_t… in GetX509SubjectName() argument
136 return ToStringName(X509_get_subject_name, x509cert, subjectObjName, outBuf, outBufMaxSize); in GetX509SubjectName()
[all …]
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
Dcm_x509.h59 int32_t GetX509SerialNumber(X509 *x509cert, char *outBuf, uint32_t outBufMaxSize);
61 int32_t GetX509SubjectName(const X509 *x509cert, const char *subjectObjName, char* outBuf, uint32_t…
63 int32_t GetX509SubjectNameLongFormat(const X509 *x509cert, char* outBuf, uint32_t outBufMaxSize);
64 int32_t GetX509IssueNameLongFormat(const X509 *x509cert, char* outBuf, uint32_t outBufMaxSize);
66 int32_t GetX509NotBefore(const X509 *x509cert, char* outBuf, uint32_t outBufMaxSize);
67 int32_t GetX509NotAfter(const X509 *x509cert, char* outBuf, uint32_t outBufMaxSize);
69 int32_t GetX509Fingerprint(const X509 *x509cert, char* outBuf, uint32_t outBufMaxSize);
/base/telephony/sms_mms/services/sms/
Dgsm_cb_codec.cpp198 uint8_t outBuf[MAX_CB_MSG_LEN + 1] = { 0 }; in ConvertToUTF8() local
201 …codeSize = TextCoder::Instance().Gsm7bitToUtf8(outBuf, sizeof(outBuf), src, raw.length(), langInfo… in ConvertToUTF8()
203 codeSize = TextCoder::Instance().Ucs2ToUtf8(outBuf, sizeof(outBuf), src, raw.length()); in ConvertToUTF8()
213 outBuf[codeSize] = '\0'; in ConvertToUTF8()
215 message.push_back(static_cast<char>(outBuf[index])); in ConvertToUTF8()
/base/telephony/ril_adapter/services/vendor/src/
Dat_data.c264 static int32_t AddressFormat(uint64_t addr, char *outBuf, size_t bufLen) in AddressFormat() argument
272 if ((outBuf == NULL) || !bufLen) { in AddressFormat()
276 int32_t ret = memset_s(outBuf, bufLen, 0, bufLen); in AddressFormat()
286outBuf, MAX_CMD_LENGTH, "%d.%d.%d.%d", data[index1st], data[index2nd], data[index3rd], data[index4… in AddressFormat()
290 static int32_t NetMaskFormat(uint64_t addr, char *outBuf, size_t bufLen) in NetMaskFormat() argument
295 if ((outBuf == NULL) || !bufLen) { in NetMaskFormat()
299 int32_t ret = memset_s(outBuf, bufLen, 0, bufLen); in NetMaskFormat()
312 GenerateCommand(outBuf, MAX_CMD_LENGTH, "/%d", prefixLen); in NetMaskFormat()
/base/customization/config_policy/interfaces/kits/js/src/
Dconfig_policy_napi.cpp179 char outBuf[MAX_PATH_LEN] = {0}; in NativeGetOneCfgFile() local
180 GetOneCfgFile(asyncCallbackInfo->relPath_.c_str(), outBuf, MAX_PATH_LEN); in NativeGetOneCfgFile()
181 asyncCallbackInfo->pathValue_ = std::string(outBuf); in NativeGetOneCfgFile()
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/lite_exchange_task/
Diso_client_bind_exchange_task.c185 Uint8Buff outBuf = { *encData, sizeof(task->challenge) + TAG_LEN }; in ClientBindAesEncrypt() local
187 &outBuf); in ClientBindAesEncrypt()
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/
Diso_task_common.c99 Uint8Buff outBuf = { out, sizeof(int) + TAG_LEN }; in GenerateEncResult() local
101 &encryptInfo, false, &outBuf); in GenerateEncResult()
225 Uint8Buff outBuf = { (uint8_t *)&result, sizeof(int) }; in CheckEncResult() local
234 &outBuf); in CheckEncResult()
/base/update/updater/services/updater_binary/
Dupdate_image_block.cpp300 … Hpackage::PkgManager::StreamPtr &outStream, uint8_t *&outBuf, size_t &buffSize) in ExtractFileByName() argument
324 ret = outStream->GetBuffer(outBuf, buffSize); in ExtractFileByName()