mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2024-11-23 08:00:07 +00:00
修改检视意见
Signed-off-by: yangyang <yangyang651@h-partners.com>
This commit is contained in:
parent
80db278382
commit
764ead21cf
@ -26,68 +26,66 @@
|
||||
|
||||
namespace OHOS {
|
||||
namespace Telephony {
|
||||
#define VERSION_BYTES_LEN 3
|
||||
#define BASE64_TO_HEX_RATIO 2
|
||||
|
||||
#define APDU_MSG_STATUS_WAIT_RSP (1)
|
||||
#define APDU_MSG_STATUS_RCV_RSP (2)
|
||||
#define APDU_MSG_STATUS_DECODE_OK (0)
|
||||
|
||||
#define SVN_RAW_LENGTH_MIN (3)
|
||||
#define EUICC_INFO_RAW_LENGTH (1024)
|
||||
#define EUICC_INFO_SVN_LENGTH (255)
|
||||
#define EUICC_INFO_VERSION_MIN_LENGTH (3)
|
||||
#define EUICC_INFO2_RAW_LENGTH (2048)
|
||||
#define EUICC_INFO2_VERSION_TYPE_LENGTH (32)
|
||||
#define EUICC_INFO2_EXT_CARD_RES_LENGTH (128)
|
||||
#define EUICC_INFO2_CAPABILITY_LENGTH (128)
|
||||
#define EUICC_INFO2_CIPKID_LIST_LENGTH (1024)
|
||||
#define EUICC_INFO2_FORBIDDEN_PROFILE_POLICY_RULES_LEN (128)
|
||||
#define EUICC_INFO2_SAS_ACCREDITATION_NUMBER_LEN (255)
|
||||
#define VERSION_HIGH (0)
|
||||
#define VERSION_MIDDLE (1)
|
||||
#define VERSION_LOW (2)
|
||||
#define ESIM_PROFILE_STATE_DISABLED (0)
|
||||
#define ESIM_PROFILE_STATE_ENABLED (1)
|
||||
#define ESIM_PROFILE_STATE_UNSPECIFIED (-1)
|
||||
#define SERVICE_PROVIDER_NAME_LENGTH (255)
|
||||
#define PROFILE_NICK_NAME_LENGTH (255)
|
||||
#define PROFILE_ICCID_LENGTH (255)
|
||||
#define PROFILE_NAME_LENGTH (255)
|
||||
#define TRANSACTION_ID_LENGTH (255)
|
||||
#define CANCEL_SESSION_RESP_LEN (1024)
|
||||
#define SERVER_SIGNED1_LENGTH (255)
|
||||
#define SERVER_SIGNATURE1_LENGTH (255)
|
||||
#define EUICC_CI_PK_ID_TO_BE_USED_LENGTH (255)
|
||||
#define SERVER_CERTIFICATE_LENGTH (2048)
|
||||
#define EUICC_MEMORY_RESET_BIT_STR_FILL_LEN (0x05)
|
||||
#define EUICC_MEMORY_RESET_BIT_STR_VALUE (0xA0)
|
||||
#define PROFILE_ICCID_BYTE_LENGTH (255)
|
||||
#define PROFILE_ICCID_MASK_LEN (13)
|
||||
#define PROFILE_CLASS_TESTING (0) // Testing profiles
|
||||
#define PROFILE_CLASS_PROVISIONING (1) // Provisioning profiles which are pre-loaded on eUICC
|
||||
#define PROFILE_CLASS_OPERATIONAL (2) // Operational profiles which can be pre-loaded or downloaded
|
||||
#define PROFILE_OPERATOR_ID_MCCMNC_LEN (10)
|
||||
#define PROFILE_OPERATOR_ID_GID1_LEN (10)
|
||||
#define PROFILE_OPERATOR_ID_GID2_LEN (10)
|
||||
#define PROFILE_ICON_LENGTH (2048)
|
||||
#define AUTH_SERVER_RESPONSE_LENGTH (10240)
|
||||
#define AUTH_SERVER_TAC_LEN (4)
|
||||
#define AUTH_SERVER_IMEI_LEN (8)
|
||||
#define LAST_BYTE_OF_IMEI (7)
|
||||
#define EUICC_PRE_DOWNLOAD_RESP_MAX_LENGTH (510)
|
||||
#define SMDP_HASHCC_LENGTH (64)
|
||||
#define SMDP_SIGNED2_LENGTH (2048)
|
||||
#define SMDP_SIGNATURE2_LENGTH (2048)
|
||||
#define SMDP_CERTIFICATE_LENGTH (2048)
|
||||
#define BOUND_PROFILE_PACKAGE_MAX_LENGTH (20480)
|
||||
#define LOAD_BPP_RESULTS_LENGTH (10240)
|
||||
#define TARGET_ADDRESS_MAX_LENGTH (128)
|
||||
#define SEQUENCE_NUMBER_BYTES_NUMBER_MAX (10)
|
||||
#define NOTIF_ADDRESS_LENGTH (255)
|
||||
#define ICCID_NUMBER_MAX (10)
|
||||
#define EVENT_INSTALL (1152)
|
||||
#define CMD_HEX_MAX_DATA_LENGTH (255)
|
||||
constexpr int32_t VERSION_BYTES_LEN = 3;
|
||||
constexpr int32_t BASE64_TO_HEX_RATIO 2;
|
||||
constexpr int32_t APDU_MSG_STATUS_WAIT_RSP = 1;
|
||||
constexpr int32_t APDU_MSG_STATUS_RCV_RSP = 2;
|
||||
constexpr int32_t APDU_MSG_STATUS_DECODE_OK = 0;
|
||||
constexpr int32_t SVN_RAW_LENGTH_MIN = 3;
|
||||
constexpr int32_t EUICC_INFO_RAW_LENGTH = 1024;
|
||||
constexpr int32_t EUICC_INFO_SVN_LENGTH = 255;
|
||||
constexpr int32_t EUICC_INFO_VERSION_MIN_LENGTH = 3;
|
||||
constexpr int32_t EUICC_INFO2_RAW_LENGTH = 2048;
|
||||
constexpr int32_t EUICC_INFO2_VERSION_TYPE_LENGTH = 32;
|
||||
constexpr int32_t EUICC_INFO2_EXT_CARD_RES_LENGTH = 128;
|
||||
constexpr int32_t EUICC_INFO2_CAPABILITY_LENGTH = 128;
|
||||
constexpr int32_t EUICC_INFO2_CIPKID_LIST_LENGTH = 1024;
|
||||
constexpr int32_t EUICC_INFO2_FORBIDDEN_PROFILE_POLICY_RULES_LEN = 128;
|
||||
constexpr int32_t EUICC_INFO2_SAS_ACCREDITATION_NUMBER_LEN = 255;
|
||||
constexpr int32_t VERSION_HIGH = 0;
|
||||
constexpr int32_t VERSION_MIDDLE = 1;
|
||||
constexpr int32_t VERSION_LOW = 2;
|
||||
constexpr int32_t ESIM_PROFILE_STATE_DISABLED = 0;
|
||||
constexpr int32_t ESIM_PROFILE_STATE_ENABLED = 1;
|
||||
constexpr int32_t ESIM_PROFILE_STATE_UNSPECIFIED = -1;
|
||||
constexpr int32_t SERVICE_PROVIDER_NAME_LENGTH = 255;
|
||||
constexpr int32_t PROFILE_NICK_NAME_LENGTH = 255;
|
||||
constexpr int32_t PROFILE_ICCID_LENGTH = 255;
|
||||
constexpr int32_t PROFILE_NAME_LENGTH = 255;
|
||||
constexpr int32_t TRANSACTION_ID_LENGTH = 255;
|
||||
constexpr int32_t CANCEL_SESSION_RESP_LEN = 1024;
|
||||
constexpr int32_t SERVER_SIGNED1_LENGTH = 255;
|
||||
constexpr int32_t SERVER_SIGNATURE1_LENGTH = 255;
|
||||
constexpr int32_t EUICC_CI_PK_ID_TO_BE_USED_LENGTH = 255;
|
||||
constexpr int32_t SERVER_CERTIFICATE_LENGTH = 2048;
|
||||
constexpr int32_t PROFILE_ICCID_BYTE_LENGTH = 255;
|
||||
constexpr int32_t PROFILE_ICCID_MASK_LEN = 13;
|
||||
constexpr int32_t PROFILE_CLASS_TESTING = 0;
|
||||
constexpr int32_t PROFILE_CLASS_PROVISIONING = 1;
|
||||
constexpr int32_t PROFILE_CLASS_OPERATIONAL = 2;
|
||||
constexpr int32_t PROFILE_OPERATOR_ID_MCCMNC_LEN = 10;
|
||||
constexpr int32_t PROFILE_OPERATOR_ID_GID1_LEN = 10;
|
||||
constexpr int32_t PROFILE_OPERATOR_ID_GID2_LEN = 10;
|
||||
constexpr int32_t PROFILE_ICON_LENGTH = 2048;
|
||||
constexpr int32_t AUTH_SERVER_RESPONSE_LENGTH = 10240;
|
||||
constexpr int32_t AUTH_SERVER_TAC_LEN = 4;
|
||||
constexpr int32_t AUTH_SERVER_IMEI_LEN = 8;
|
||||
constexpr int32_t LAST_BYTE_OF_IMEI = 7;
|
||||
constexpr int32_t EUICC_PRE_DOWNLOAD_RESP_MAX_LENGTH = 510;
|
||||
constexpr int32_t SMDP_HASHCC_LENGTH = 64;
|
||||
constexpr int32_t SMDP_SIGNED2_LENGTH = 2048;
|
||||
constexpr int32_t SMDP_SIGNATURE2_LENGTH = 2048;
|
||||
constexpr int32_t SMDP_CERTIFICATE_LENGTH = 2048;
|
||||
constexpr int32_t BOUND_PROFILE_PACKAGE_MAX_LENGTH = 20480;
|
||||
constexpr int32_t LOAD_BPP_RESULTS_LENGTH = 10240;
|
||||
constexpr int32_t TARGET_ADDRESS_MAX_LENGTH = 128;
|
||||
constexpr int32_t SEQUENCE_NUMBER_BYTES_NUMBER_MAX = 10;
|
||||
constexpr int32_t NOTIF_ADDRESS_LENGTH = 255;
|
||||
constexpr int32_t ICCID_NUMBER_MAX = 10;
|
||||
constexpr int32_t EVENT_INSTALL = 1152;
|
||||
constexpr int32_t CMD_HEX_MAX_DATA_LENGTH = 255;
|
||||
|
||||
typedef struct TagEuiccInfo {
|
||||
std::string raw;
|
||||
|
Loading…
Reference in New Issue
Block a user