Searched refs:totalLen (Results 1 – 9 of 9) sorted by relevance
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_storage_lite.c | 109 keyInfoHead->totalLen = sizeof(*keyInfoHead); in InitImageBuffer() 159 uint32_t totalLen = keyInfoHead->totalLen; in FreshImageBuffer() local 162 if ((totalLen < sizeof(*keyInfoHead)) || (totalLen > MAX_STORAGE_SIZE)) { in FreshImageBuffer() 166 if (totalLen == sizeof(*keyInfoHead)) { in FreshImageBuffer() 172 if (fileLen < (totalLen + offset)) { /* keyfile len at least totalLen + offset */ in FreshImageBuffer() 173 … HKS_LOG_E("total Len: %" LOG_PUBLIC "u, invalid file size: %" LOG_PUBLIC "u", totalLen, fileLen); in FreshImageBuffer() 177 uint8_t *buf = (uint8_t *)HksMalloc(totalLen); in FreshImageBuffer() 180 fileLen = HksFileRead(HKS_KEY_STORE_PATH, fileName, offset, buf, totalLen); in FreshImageBuffer() 188 g_storageImageBuffer.size = totalLen; in FreshImageBuffer() 293 uint32_t totalLen = sizeof(struct HksStoreHeaderInfo); in CleanStorageKeyInfo() local [all …]
|
/base/security/device_auth/common_lib/interfaces/ |
D | hc_tlv_parser.h | 230 int32_t totalLen = sizeof(count); \ 244 totalLen += elementLen; \ 245 if (totalLen >= MAX_TOTOL_LEN) { \ 250 return totalLen; \ 258 uint32_t totalLen = 4; \ 267 totalLen += len; \ 268 if (totalLen >= MAX_TOTOL_LEN) { \ 273 return totalLen; \ 280 uint32_t totalLen = sizeof(uint32_t); \ 283 totalLen += GetlenTlvNode((TlvBase *)element); \ [all …]
|
/base/telephony/core_service/services/sim/src/ |
D | icc_operator_rule.cpp | 120 int32_t totalLen = INT32_INITVALUE; in CreateFromTLV() local 121 while (strIt != hexStrEnd && totalLen < len) { in CreateFromTLV() 126 totalLen += ruleLen; in CreateFromTLV() 127 … TELEPHONY_LOGI("DecodeRule once count:%{public}d ,TAG_ALL_RULE len:%{public}d", totalLen, len); in CreateFromTLV() 152 int32_t totalLen = INT32_INITVALUE; in DecodeTLVTagCertPkg() local 153 while (hexStrBeg != hexStrEnd && totalLen < refDoLen) { in DecodeTLVTagCertPkg() 162 totalLen += length + TLV_SIMPLE_TAG_ONEBYTE_LEN + TLV_SIMPLE_TAG_LENGTH_LEN; in DecodeTLVTagCertPkg() 163 TELEPHONY_LOGI("parse more TLV count:%{public}d , refDoLen:%{public}d", totalLen, refDoLen); in DecodeTLVTagCertPkg() 193 int32_t totalLen = INT32_INITVALUE; in DecodeTLVTagLimits() local 195 while (hexStrBeg != hexStrEnd && totalLen < arDoLen) { in DecodeTLVTagLimits() [all …]
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
D | log_stats.h | 105 uint64_t totalLen = 0; in GetTotalLen() local 107 totalLen += i; in GetTotalLen() 109 return totalLen; in GetTotalLen()
|
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
D | hap_cert_verify_openssl_utils.cpp | 245 int32_t totalLen = 0; in WriteX509CrlToStream() local 247 crlFile.seekp(posStart + sizeof(totalLen)); in WriteX509CrlToStream() 253 totalLen += readLen; in WriteX509CrlToStream() 260 crlFile.write(reinterpret_cast<char*>(&totalLen), sizeof(totalLen)); in WriteX509CrlToStream()
|
/base/security/device_auth/common_lib/impl/src/ |
D | hc_tlv_parser.c | 245 uint32_t totalLen = 0; in EncodeTlvStruct() local 252 totalLen += childLen; in EncodeTlvStruct() 254 if (totalLen > MAX_TLV_LENGTH) { in EncodeTlvStruct() 259 return totalLen; in EncodeTlvStruct()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/ |
D | das_task_common.c | 215 uint32_t totalLen = keyAliasBuff.length; in CombineKeyAlias() local 217 if (memcpy_s(keyAliasBuff.val, totalLen, serviceId->val, serviceId->length) != EOK) { in CombineKeyAlias() 224 …if (memcpy_s(keyAliasBuff.val + usedLen, totalLen - usedLen, keyType->val, keyType->length) != EOK… in CombineKeyAlias() 231 …if (memcpy_s(keyAliasBuff.val + usedLen, totalLen - usedLen, authId->val, authId->length) != EOK) { in CombineKeyAlias()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_keyblob_lite.c | 464 …uint32_t totalLen = sizeof(struct HksStoreKeyInfo) + HKS_MAX_KEY_ALIAS_LEN + HKS_MAX_KEY_AUTH_ID_L… in HksBuildKeyBlob() local 466 ret = HksBlobInit(&tmpOut, totalLen); in HksBuildKeyBlob()
|
/base/security/huks/interfaces/inner_api/huks_standard/main/include/ |
D | hks_type.h | 831 uint32_t totalLen; /* key buffer total len */ member
|