Home
last modified time | relevance | path

Searched refs:Asn1Node (Results 1 - 13 of 13) sorted by relevance

/base/telephony/core_service/utils/codec/src/
H A Dasn1_node.cpp33 Asn1Node::Asn1Node(const uint32_t tag, const std::vector<uint8_t> &src, uint32_t offset, uint32_t length) in Asn1Node() function in OHOS::Telephony::Asn1Node
44 uint32_t Asn1Node::Asn1NodeToHexStr(std::string &destStr) in Asn1NodeToHexStr()
53 uint32_t Asn1Node::Asn1NodeToBytes(std::vector<uint8_t> &byteStream) in Asn1NodeToBytes()
64 void Asn1Node::Asn1Write(std::vector<uint8_t> &dest) in Asn1Write()
97 std::shared_ptr<Asn1Node> asn1Node = nullptr; in Asn1Write()
111 std::shared_ptr<Asn1Node> Asn1Node::Asn1GetChild(const uint32_t tag) in Asn1GetChild()
121 std::shared_ptr<Asn1Node> curNode = nullptr; in Asn1GetChild()
135 bool Asn1Node
[all...]
H A Dasn1_builder.cpp34 void Asn1Builder::Asn1AddChild(const std::shared_ptr<Asn1Node> node) in Asn1AddChild()
52 std::shared_ptr<Asn1Node> node = std::make_shared<Asn1Node>(tag, childByte, 0, byteLen); in Asn1AddChildAsBytes()
83 std::shared_ptr<Asn1Node> node = std::make_shared<Asn1Node>(tag, intBytes, 0, bytesLen); in Asn1AddChildAsInteger()
97 std::shared_ptr<Asn1Node> node = std::make_shared<Asn1Node>(tag, intBytes, 0, bytesLen); in Asn1AddChildAsSignedInteger()
122 std::shared_ptr<Asn1Node> node = std::make_shared<Asn1Node>(tag, newChildByte, 0, dataLength); in Asn1AddChildAsBits()
140 std::shared_ptr<Asn1Node> Asn1Builde
[all...]
H A Dasn1_decoder.cpp47 std::shared_ptr<Asn1Node> Asn1Decoder::Asn1NextNode() in Asn1NextNode()
82 std::shared_ptr<Asn1Node> Asn1Decoder::BuildAsn1Node(const uint32_t tag, uint32_t offset, uint32_t tagStart) in BuildAsn1Node()
109 std::shared_ptr<Asn1Node> asn1Node = std::make_shared<Asn1Node>(tag, byteStream, 0, dataLen); in BuildAsn1Node()
/base/telephony/core_service/utils/codec/include/
H A Dasn1_node.h27 class Asn1Node { class
29 Asn1Node(const uint32_t tag, const std::vector<uint8_t> &src, uint32_t offset, uint32_t length);
32 std::shared_ptr<Asn1Node> Asn1GetChild(const uint32_t tag);
34 std::shared_ptr<Asn1Node> Asn1GetGrandson(const uint32_t firstLevelTag, const uint32_t secondLevelTag);
35 std::shared_ptr<Asn1Node> Asn1GetGreatGrandson(const uint32_t firstLevelTag, const uint32_t secondLevelTag,
37 int32_t Asn1GetChildren(const uint32_t tag, std::list<std::shared_ptr<Asn1Node>> &children);
64 void AddNodeChildren(const std::shared_ptr<Asn1Node> &asn1Node) in AddNodeChildren()
81 std::list<std::shared_ptr<Asn1Node>> children_;
H A Dasn1_builder.h32 void Asn1AddChild(const std::shared_ptr<Asn1Node> node);
39 std::shared_ptr<Asn1Node> Asn1Build();
43 std::list<std::shared_ptr<Asn1Node>> children_;
H A Dasn1_decoder.h32 std::shared_ptr<Asn1Node> Asn1NextNode();
35 std::shared_ptr<Asn1Node> BuildAsn1Node(const uint32_t tag, uint32_t offset, uint32_t tagStart);
/base/telephony/core_service/test/unittest/utils_codec_gtest/
H A Dasn1_node_test.cpp41 std::shared_ptr<Asn1Node> Asn1ParseResponse(std::vector<uint8_t> response, int32_t respLength);
52 std::shared_ptr<Asn1Node> Asn1NodeTest::Asn1ParseResponse(std::vector<uint8_t> response, int32_t respLength) in Asn1ParseResponse()
65 std::shared_ptr<Asn1Node> node = decoder.Asn1NextNode(); in Asn1ParseResponse()
77 std::shared_ptr<Asn1Node> asn1Node = std::make_shared<Asn1Node>(tag, src, 0, 0); in HWTEST_F()
91 std::shared_ptr<Asn1Node> asn1Node = std::make_shared<Asn1Node>(tag, src, 0, 0); in HWTEST_F()
107 std::shared_ptr<Asn1Node> asn1Node = std::make_shared<Asn1Node>(tag, src, 0, 0); in HWTEST_F()
108 std::shared_ptr<Asn1Node> pAsn1GetChil in HWTEST_F()
[all...]
H A Dasn1_decoder_test.cpp59 std::shared_ptr<Asn1Node> pAsn1Node = pAsn1Decoder->BuildAsn1Node(tag, offset, tagStart); in HWTEST_F()
77 std::shared_ptr<Asn1Node> pAsn1Node = pAsn1Decoder->Asn1NextNode(); in HWTEST_F()
83 std::shared_ptr<Asn1Node> pAsn1Node1 = pAsn1Decoder1->Asn1NextNode(); in HWTEST_F()
H A Dasn1_builder_test.cpp146 std::shared_ptr<Asn1Node> pAsn1Node = builder->Asn1Build(); in HWTEST_F()
/base/telephony/core_service/services/sim/include/
H A Desim_file.h90 bool RequestRulesAuthTableParseTagCtxComp0(std::shared_ptr<Asn1Node> &root);
129 bool ObtainEuiccInfo1ParseTagCtx2(std::shared_ptr<Asn1Node> &root);
132 bool RequestAllProfilesParseProfileInfo(std::shared_ptr<Asn1Node> &root);
134 void BuildBasicProfileInfo(EuiccProfileInfo *eProfileInfo, std::shared_ptr<Asn1Node> &profileNode);
135 void BuildAdvancedProfileInfo(EuiccProfileInfo *eProfileInfo, std::shared_ptr<Asn1Node> &profileNode);
136 void BuildOperatorId(EuiccProfileInfo *eProfileInfo, std::shared_ptr<Asn1Node> &operatorIdNode);
138 std::shared_ptr<Asn1Node> ParseEvent(const AppExecFwk::InnerEvent::Pointer &event);
140 std::shared_ptr<Asn1Node> Asn1ParseResponse(const std::vector<uint8_t> &response, uint32_t respLength);
148 bool GetProfileDoneParseProfileInfo(std::shared_ptr<Asn1Node> &root);
158 bool DecodeBoundProfilePackage(const std::string &boundProfilePackageStr, std::shared_ptr<Asn1Node>
[all...]
/base/telephony/core_service/services/sim/src/
H A Desim_file.cpp357 std::shared_ptr<Asn1Node> root = ParseEvent(event); in ProcessObtainEidDone()
362 std::shared_ptr<Asn1Node> profileRoot = root->Asn1GetChild(TAG_ESIM_EID); in ProcessObtainEidDone()
382 std::shared_ptr<Asn1Node> EsimFile::Asn1ParseResponse(const std::vector<uint8_t> &response, uint32_t respLength) in Asn1ParseResponse()
393 std::shared_ptr<Asn1Node> node = decoder.Asn1NextNode(); in Asn1ParseResponse()
406 std::shared_ptr<Asn1Node> root = Asn1ParseResponse(responseByte, byteLen); in ProcessObtainEuiccInfo1Done()
425 bool EsimFile::ObtainEuiccInfo1ParseTagCtx2(std::shared_ptr<Asn1Node> &root) in ObtainEuiccInfo1ParseTagCtx2()
427 std::shared_ptr<Asn1Node> svnNode = root->Asn1GetChild(TAG_ESIM_CTX_2); in ObtainEuiccInfo1ParseTagCtx2()
444 std::shared_ptr<Asn1Node> root = ParseEvent(event); in ProcessRequestAllProfilesDone()
463 bool EsimFile::RequestAllProfilesParseProfileInfo(std::shared_ptr<Asn1Node> &root) in RequestAllProfilesParseProfileInfo()
465 std::shared_ptr<Asn1Node> profileRoo in RequestAllProfilesParseProfileInfo()
[all...]
/base/telephony/core_service/test/unittest/esim_gtest/
H A Desim_test.cpp384 std::shared_ptr<Asn1Node> asn1Node = std::make_shared<Asn1Node>(tag, src, 0, 0); in HWTEST_F()
398 std::shared_ptr<Asn1Node> root = esimFile->Asn1ParseResponse(responseByte, responseByte.size()); in HWTEST_F()
618 std::shared_ptr<Asn1Node> root = esimFile->Asn1ParseResponse(responseByte, byteLen); in HWTEST_F()
1135 std::shared_ptr<Asn1Node> bppNode = nullptr; in HWTEST_F()
1145 std::shared_ptr<Asn1Node> bppNode = nullptr; in HWTEST_F()
1149 std::shared_ptr<Asn1Node> initSecureChannelReq = bppNode->Asn1GetChild(TAG_ESIM_INITIALISE_SECURE_CHANNEL); in HWTEST_F()
1160 std::shared_ptr<Asn1Node> bppNode = nullptr; in HWTEST_F()
1164 std::shared_ptr<Asn1Node> firstSequenceOf87 = bppNode->Asn1GetChild(TAG_ESIM_CTX_COMP_0); in HWTEST_F()
1175 std::shared_ptr<Asn1Node> bppNod in HWTEST_F()
[all...]
/base/telephony/core_service/utils/common/include/
H A Desim_service.h148 std::list<std::shared_ptr<Asn1Node>> accessRules;

Completed in 12 milliseconds