Skip to content

Commit e425924

Browse files
committed
added indent
1 parent 627ad12 commit e425924

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

Asn1Parser/EncodingType.cs

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace SysadminsLV.Asn1Parser {
1+
using System;
2+
3+
namespace SysadminsLV.Asn1Parser {
24
/// <summary>
35
/// This enumeration contains string formats used in CryptoAPI. See remarks for string formats examples.
46
/// </summary>
@@ -77,31 +79,31 @@
7779
/// </code>
7880
/// </example>
7981
/// </remarks>
80-
public enum EncodingType : uint {
82+
public enum EncodingType : UInt32 {
8183
/// <summary>
8284
/// Base64, with certificate beginning and ending headers.
8385
/// </summary>
84-
Base64Header = 0x00000000,
86+
Base64Header = 0x0,
8587
/// <summary>
8688
/// Base64, without headers.
8789
/// </summary>
88-
Base64 = 0x00000001,
90+
Base64 = 0x1,
8991
/// <summary>
9092
/// Pure binary copy.
9193
/// </summary>
92-
Binary = 0x00000002, //
94+
Binary = 0x2,
9395
/// <summary>
9496
/// The string is base64 encoded with beginning and ending certificate request headers.
9597
/// </summary>
96-
Base64RequestHeader = 0x00000003,
98+
Base64RequestHeader = 0x3,
9799
/// <summary>
98100
/// Hexadecimal only format.
99101
/// </summary>
100-
Hex = 0x00000004,
102+
Hex = 0x4,
101103
/// <summary>
102104
/// Hexadecimal format with ASCII character display.
103105
/// </summary>
104-
HexAscii = 0x00000005,
106+
HexAscii = 0x5,
105107
/// <summary>
106108
/// Tries the following, in order:
107109
/// <list type="bullet">
@@ -110,7 +112,7 @@ public enum EncodingType : uint {
110112
/// </list>
111113
/// <strong><see cref="AsnFormatter.BinaryToString">BinaryToString</see></strong> method do not support this flag.
112114
/// </summary>
113-
Base64Any = 0x00000006,
115+
Base64Any = 0x6,
114116
/// <summary>
115117
/// Tries the following, in order:
116118
/// <list type="bullet">
@@ -120,7 +122,7 @@ public enum EncodingType : uint {
120122
/// </list>
121123
/// <strong><see cref="AsnFormatter.BinaryToString">BinaryToString</see></strong> method do not support this flag.
122124
/// </summary>
123-
StringAny = 0x00000007,
125+
StringAny = 0x7,
124126
/// <summary>
125127
/// <list type="bullet">
126128
/// Tries the following, in order:
@@ -132,23 +134,24 @@ public enum EncodingType : uint {
132134
/// </list>
133135
/// <strong><see cref="AsnFormatter.BinaryToString">BinaryToString</see></strong> method do not support this flag.
134136
/// </summary>
135-
HexAny = 0x00000008,
137+
HexAny = 0x8,
136138
/// <summary>
137139
/// Base64, with X.509 certificate revocation list (CRL) beginning and ending headers.
138140
/// </summary>
139-
Base64CrlHeader = 0x00000009,
141+
Base64CrlHeader = 0x9,
140142
/// <summary>
141143
/// Hex, with address display.
142144
/// </summary>
143-
HexAddress = 0x0000000a,
145+
HexAddress = 0xa,
144146
/// <summary>
145147
/// Hex, with ASCII character and address display.
146148
/// </summary>
147-
HexAsciiAddress = 0x0000000b,
149+
HexAsciiAddress = 0xb,
148150
/// <summary>
149151
/// A raw hexadecimal string.
150152
/// </summary>
151-
HexRaw = 0x0000000c,
153+
HexRaw = 0xc,
154+
152155
///// <summary>
153156
///// Set this flag for Base64 data to specify that the end of the binary data contain only white space and at most
154157
///// three equals "=" signs.

0 commit comments

Comments
 (0)