1 /*
2  * Copyright (C) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef ASN1_CONSTANTS_H
17 #define ASN1_CONSTANTS_H
18 
19 #include <cctype>
20 #include <iomanip>
21 
22 namespace OHOS {
23 namespace Telephony {
24 const uint32_t BYTE_TO_HEX_LEN = 2;
25 const uint32_t OFFSET_EIGHT_BIT = 8;
26 const uint32_t BIT6_MASK = 0x20;
27 const uint32_t BIT8_MASK = 0x80;
28 const uint32_t MAX_UINT8 = std::numeric_limits<uint8_t>::max();
29 const uint32_t MAX_UINT16 = std::numeric_limits<uint16_t>::max();
30 const uint32_t MAX_UINT24 = (std::numeric_limits<uint32_t>::max() >> 8);
31 const uint32_t MAX_INT8 = std::numeric_limits<int8_t>::max();
32 const uint32_t MAX_INT16 = std::numeric_limits<int16_t>::max();
33 const uint32_t MAX_INT24 = (std::numeric_limits<int32_t>::max() >> 8);
34 } // namespace Telephony
35 } // namespace OHOS
36 #endif // ASN1_CONSTANTS_H