Home
last modified time | relevance | path

Searched refs:Asn1Utils (Results 1 - 11 of 11) sorted by relevance

/base/telephony/core_service/test/unittest/utils_codec_gtest/
H A Dasn1_utils_test.cpp49 bool ret = Asn1Utils::IsConstructedTag(tag); in HWTEST_F()
57 uint32_t result = Asn1Utils::CalculateEncodedBytesNumForLength(tag); in HWTEST_F()
62 result = Asn1Utils::CalculateEncodedBytesNumForLength(tag); in HWTEST_F()
71 uint32_t result = Asn1Utils::ByteCountForUint(tag); in HWTEST_F()
81 Asn1Utils::BchToString(responseByte, destStr); in HWTEST_F()
92 Asn1Utils::BcdToBytes(str.c_str(), iccidBytes); in HWTEST_F()
104 responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
106 strResult = Asn1Utils::BytesToHexStr(responseByte); in HWTEST_F()
121 res = Asn1Utils::ByteCountForInt(value, false); in HWTEST_F()
125 res = Asn1Utils in HWTEST_F()
[all...]
H A Dasn1_decoder_test.cpp52 std::vector<uint8_t> src = Asn1Utils::HexStrToBytes(std::string("A10401020304")); in HWTEST_F()
75 std::vector<uint8_t> tmpSrc = Asn1Utils::HexStrToBytes(std::string("")); in HWTEST_F()
81 std::vector<uint8_t> src = Asn1Utils::HexStrToBytes(std::string("A10401020304")); in HWTEST_F()
H A Dasn1_node_test.cpp154 responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
174 responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
209 responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
236 responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
266 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
293 responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
/base/telephony/core_service/utils/codec/src/
H A Dasn1_utils.cpp53 bool Asn1Utils::IsConstructedTag(uint32_t tag) in IsConstructedTag()
64 uint32_t Asn1Utils::CalculateEncodedBytesNumForLength(uint32_t length) in CalculateEncodedBytesNumForLength()
74 uint32_t Asn1Utils::ByteCountForUint(uint32_t value) in ByteCountForUint()
79 uint32_t Asn1Utils::ByteCountForInt(uint32_t value, bool isSigned) in ByteCountForInt()
106 void Asn1Utils::BchToString(const std::vector<uint8_t> &src, std::string &destStr) in BchToString()
112 void Asn1Utils::BcdToBytes(const std::string &bcd, std::vector<uint8_t> &bytes) in BcdToBytes()
118 std::string Asn1Utils::BytesToHexStr(const std::vector<uint8_t> &bytes) in BytesToHexStr()
130 uint32_t Asn1Utils::ByteToHexStr(uint8_t src, std::string &dest) in ByteToHexStr()
138 std::vector<uint8_t> Asn1Utils::HexStrToBytes(const std::string& hexStr) in HexStrToBytes()
157 int32_t Asn1Utils
[all...]
H A Dasn1_node.cpp37 constructed_ = Asn1Utils::IsConstructedTag(tag); in Asn1Node()
41 encodedLength_ = Asn1Utils::ByteCountForUint(tag) + Asn1Utils::CalculateEncodedBytesNumForLength(length) + length; in Asn1Node()
49 destStr = Asn1Utils::BytesToHexStr(byteStream); in Asn1NodeToHexStr()
69 uint32_t bytesLen = Asn1Utils::UintToBytes(tag_, uintByte); in Asn1Write()
82 uint8_t encodeLens = static_cast<uint8_t>(Asn1Utils::ByteCountForUint(dataLength_) | BIT8_MASK); in Asn1Write()
85 bytesLen = Asn1Utils::UintToBytes(dataLength_, uintByteStr); in Asn1Write()
222 uint32_t byteLen = Asn1Utils::UintToBytes(tag_, byteStream); in Asn1GetHeadAsHexStr()
227 cursor += Asn1Utils::BytesToHexStr(byteStream); in Asn1GetHeadAsHexStr()
234 cursorLen += Asn1Utils in Asn1GetHeadAsHexStr()
[all...]
H A Dasn1_builder.cpp48 if (Asn1Utils::IsConstructedTag(tag)) { in Asn1AddChildAsBytes()
65 std::vector<uint8_t> bytes = Asn1Utils::StringToBytes(childStr); in Asn1AddChildAsString()
72 if (Asn1Utils::IsConstructedTag(tag)) { in Asn1AddChildAsInteger()
77 uint32_t bytesLen = Asn1Utils::UintToBytes(childInt, intBytes); in Asn1AddChildAsInteger()
91 if (Asn1Utils::IsConstructedTag(tag)) { in Asn1AddChildAsSignedInteger()
96 uint32_t bytesLen = Asn1Utils::IntToBytes(childSignedInt, intBytes); in Asn1AddChildAsSignedInteger()
105 if (Asn1Utils::IsConstructedTag(tag)) { in Asn1AddChildAsBits()
112 uint32_t reverseInt = Asn1Utils::ReverseInt(childBits); in Asn1AddChildAsBits()
120 childByte[0] = Asn1Utils::CountTrailingZeros(childByte[dataLength - 1]); in Asn1AddChildAsBits()
174 newNode->SetEncodedLength(Asn1Utils in Asn1Build()
[all...]
H A Dasn1_decoder.cpp74 int32_t tag = Asn1Utils::BytesToInt(srcData_, tagStart, offset - tagStart); in Asn1NextNode()
100 dataLen = static_cast<uint32_t>(Asn1Utils::BytesToInt(srcData_, offset, lenLen)); in BuildAsn1Node()
H A Dreset_response.cpp123 std::vector<uint8_t> atrData = Asn1Utils::HexStrToBytes(atr); in AnalysisAtrData()
/base/telephony/core_service/services/sim/src/
H A Desim_file.cpp372 std::string strResult = Asn1Utils::BytesToHexStr(outPutBytes); in ProcessObtainEidDone()
404 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(rawData.resultData); in ProcessObtainEuiccInfo1Done()
545 Asn1Utils::BchToString(iccidBytes, eProfileInfo->iccid); in BuildBasicProfileInfo()
554 eProfileInfo->nickname = Asn1Utils::BytesToString(nickNameBytes); in BuildBasicProfileInfo()
564 eProfileInfo->serviceProviderName = Asn1Utils::BytesToString(serviceProviderNameBytes); in BuildBasicProfileInfo()
574 eProfileInfo->profileName = Asn1Utils::BytesToString(profileNameBytes); in BuildBasicProfileInfo()
758 Asn1Utils::BcdToBytes(str, iccidBytes); in ProcessDisableProfile()
875 smdsAddress_ = Asn1Utils::BytesToString(outPutBytes); in ProcessObtainSmdsAddressDone()
887 std::string strResult = Asn1Utils::BytesToHexStr(mccMncData); in CarrierIdentifiers()
920 strResult = Asn1Utils in buildCarrierIdentifiers()
[all...]
/base/telephony/core_service/utils/codec/include/
H A Dasn1_utils.h27 class Asn1Utils { class
/base/telephony/core_service/test/unittest/esim_gtest/
H A Desim_test.cpp397 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
616 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
1244 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(bppCombineHexStr); in HWTEST_F()
1308 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(resultData.c_str()); in HWTEST_F()
1324 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(resultData.c_str()); in HWTEST_F()
1339 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(resultData.c_str()); in HWTEST_F()
1356 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
1370 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
1384 std::vector<uint8_t> responseByte = Asn1Utils::HexStrToBytes(resultData); in HWTEST_F()
1546 std::vector<uint8_t> responseByte = Asn1Utils in HWTEST_F()
[all...]

Completed in 13 milliseconds