30 * 12) inhibit-any policy |
30 * 12) inhibit-any policy |
31 * |
31 * |
32 */ |
32 */ |
33 |
33 |
34 |
34 |
35 |
|
36 |
|
37 /** |
35 /** |
38 @file |
36 @file |
39 @internalAll |
37 @publishedAll |
40 @released |
38 @released |
41 */ |
39 */ |
42 |
40 |
43 #if !defined (__X509CERTEXT_H__) |
41 #if !defined (__X509CERTEXT_H__) |
44 #define __X509CERTEXT_H__ |
42 #define __X509CERTEXT_H__ |
45 |
43 |
46 #include <e32base.h> |
44 #include <e32base.h> |
47 #include <e32std.h> |
45 #include <e32std.h> |
48 #include <x509gn.h> |
46 #include <x509gn.h> |
49 |
47 |
|
48 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
49 #include <x509bitstring.h> |
|
50 #endif |
50 |
51 |
51 class RReadStream; |
52 class RReadStream; |
52 class RWriteStream; |
53 class RWriteStream; |
53 |
54 class CX509BitString; |
54 /** X509 Extension OIDs |
|
55 * |
|
56 * @publishedAll |
|
57 * @released |
|
58 * @since v9.5 */ |
|
59 |
|
60 //OIDS for the extensions we define here... |
|
61 _LIT(KBasicConstraints,"2.5.29.19"); |
|
62 _LIT(KSubjectAltName,"2.5.29.17"); |
|
63 _LIT(KIssuerAltName,"2.5.29.18"); |
|
64 _LIT(KKeyUsage,"2.5.29.15"); |
|
65 _LIT(KNameConstraints,"2.5.29.30"); |
|
66 _LIT(KPolicyConstraints,"2.5.29.36"); |
|
67 _LIT(KCertPolicies,"2.5.29.32"); |
|
68 _LIT(KPolicyMapping,"2.5.29.33"); |
|
69 _LIT(KAuthorityKeyId,"2.5.29.35"); |
|
70 _LIT(KSubjectKeyId,"2.5.29.14"); |
|
71 _LIT(KExtendedKeyUsage,"2.5.29.37"); |
|
72 _LIT(KAuthorityInfoAccess, "1.3.6.1.5.5.7.1.1"); |
|
73 _LIT(KInhibitAnyPolicy, "2.5.29.54"); |
|
74 |
|
75 // OIDs for access methods |
|
76 _LIT(KAccessMethodOCSP, "1.3.6.1.5.5.7.48.1"); |
|
77 |
|
78 //deprecated OIDs we might still encounter |
|
79 _LIT(KOldBasicConstraints,"2.5.29.10"); |
|
80 _LIT(KOldBasicConstraints2,"2.5.29.13"); |
|
81 _LIT(KOldSubjectAltName,"2.5.29.7"); |
|
82 _LIT(KOldIssuerAltName,"2.5.29.8"); |
|
83 _LIT(KOldNameConstraints,"2.5.29.11"); |
|
84 _LIT(KOldPolicyConstraints,"2.5.29.2"); |
|
85 _LIT(KOldPolicyConstraints2,"2.5.29.34"); |
|
86 _LIT(KOldCertPolicies,"2.5.29.3"); |
|
87 _LIT(KOldPolicyMapping,"2.5.29.5"); |
|
88 _LIT(KOldAuthorityKeyId,"2.5.29.1"); |
|
89 |
|
90 // Define OIDs for Symbian certificate constraints. |
|
91 _LIT(KDeviceIdListConstraint,"1.2.826.0.1.1796587.1.1.1.1"); |
|
92 _LIT(KSidListConstraint,"1.2.826.0.1.1796587.1.1.1.4"); |
|
93 _LIT(KVidListConstraint,"1.2.826.0.1.1796587.1.1.1.5"); |
|
94 _LIT(KCapabilitiesConstraint,"1.2.826.0.1.1796587.1.1.1.6"); |
|
95 |
|
96 //1) basic constraints... |
|
97 |
|
98 class CX509ExtensionBase : public CBase |
|
99 /** A certificate extension base class. |
|
100 * |
|
101 * @publishedAll |
|
102 * @released |
|
103 * @since v6.0 */ |
|
104 { |
|
105 protected: |
|
106 /** Second-phase constructor. |
|
107 * |
|
108 * @param aBinaryData The encoded binary representation. |
|
109 * @param aPos The position from which to start decoding. */ |
|
110 virtual void ConstructL(const TDesC8& aBinaryData, TInt& aPos); |
|
111 |
|
112 /** Implementation for second-phase construction. |
|
113 * |
|
114 * This is called by ConstructL(). |
|
115 * |
|
116 * @param aBinaryData The encoded binary representation. This is the same as |
|
117 * passed to ConstructL(). |
|
118 * @param aPos The position from which to start decoding. Note that the value |
|
119 * passed points, in effect, to the content, by passing the header data. */ |
|
120 virtual void DoConstructL(const TDesC8& aBinaryData, TInt& aPos) = 0; |
|
121 }; |
|
122 |
|
123 class CX509BasicConstraintsExt : public CX509ExtensionBase |
|
124 /** An X.509 certificate extension that defines basic constraints. |
|
125 * |
|
126 * It indicates whether the certificate belongs to a Certificate Authority or |
|
127 * an end Entity. |
|
128 * |
|
129 * @publishedAll |
|
130 * @released |
|
131 * @since v6.0 */ |
|
132 { |
|
133 public: |
|
134 /** Creates a new CX509BasicConstraintsExt object from the specified |
|
135 * buffer containing the binary coded representation. |
|
136 * |
|
137 * @param aBinaryData The encoded binary representation. |
|
138 * @return The new CX509BasicConstraintsExt object. */ |
|
139 IMPORT_C static CX509BasicConstraintsExt* NewL(const TDesC8& aBinaryData); |
|
140 |
|
141 /** Creates a new CX509BasicConstraintsExt object from the specified |
|
142 * buffer containing the binary coded representation, and puts a pointer to it |
|
143 * onto the cleanup stack. |
|
144 * |
|
145 * @param aBinaryData The encoded binary representation. |
|
146 * @return The new CX509BasicConstraintsExt object. */ |
|
147 IMPORT_C static CX509BasicConstraintsExt* NewLC(const TDesC8& aBinaryData); |
|
148 |
|
149 /** Creates a new CX509BasicConstraintsExt object from the specified |
|
150 * buffer containing the binary coded representation, starting at the specified |
|
151 * offset. |
|
152 * |
|
153 * @param aBinaryData The encoded binary representation. |
|
154 * @param aPos The offset position from which to start decoding. |
|
155 * @return The new CX509BasicConstraintsExt object. */ |
|
156 IMPORT_C static CX509BasicConstraintsExt* NewL(const TDesC8& aBinaryData, TInt& aPos); |
|
157 |
|
158 /** Creates a new CX509BasicConstraintsExt object from the specified |
|
159 * buffer containing the binary coded representation, starting at the specified |
|
160 * offset, and puts a pointer to it onto the cleanup stack. |
|
161 * |
|
162 * @param aBinaryData The encoded binary representation. |
|
163 * @param aPos The offset position from which to start decoding. |
|
164 * @return The new CX509BasicConstraintsExt object. */ |
|
165 IMPORT_C static CX509BasicConstraintsExt* NewLC(const TDesC8& aBinaryData, TInt& aPos); |
|
166 |
|
167 /** Destructor. |
|
168 * |
|
169 * Frees all resources owned by the object, prior to its destruction. */ |
|
170 virtual ~CX509BasicConstraintsExt(); |
|
171 |
|
172 /** Tests whether the certificate belongs to a Certificate Authority. |
|
173 * |
|
174 * @return ETrue, if the certificate belongs to a Certificate Authority; |
|
175 * EFalse, otherwise. */ |
|
176 IMPORT_C TBool IsCA() const; |
|
177 |
|
178 /** Gets the maximum number of certificates that can follow this one in the chain. |
|
179 * |
|
180 * @return The number of certificates. */ |
|
181 IMPORT_C TInt MaxChainLength() const;//0 if not set |
|
182 private: |
|
183 CX509BasicConstraintsExt(); |
|
184 void DoConstructL(const TDesC8& aBinaryData, TInt& aPos); |
|
185 TBool iIsCA; |
|
186 TInt iMaxChainLen; |
|
187 }; |
|
188 |
|
189 //2) alt name |
|
190 |
|
191 class CX509AltNameExt : public CX509ExtensionBase |
|
192 /** An X.509 certificate extension that defines an alternate name. |
|
193 * |
|
194 * It appears as an Issuer Alt Name extension or a Subject Alt Name extension |
|
195 * and is used to contain extra identifying information that will not fit into |
|
196 * a Distinguished Name. |
|
197 * |
|
198 * It consists of an array of X.509 General Names. |
|
199 * |
|
200 * @publishedAll |
|
201 * @released |
|
202 * @since v6.0 */ |
|
203 { |
|
204 public: |
|
205 /** Creates a new CX509AltNameExt object from the specified |
|
206 * buffer containing the binary coded representation. |
|
207 * |
|
208 * @param aBinaryData The encoded binary representation. |
|
209 * @return The new CX509AltNameExt object. */ |
|
210 IMPORT_C static CX509AltNameExt* NewL(const TDesC8& aBinaryData); |
|
211 |
|
212 /** Creates a new CX509AltNameExt object from the specified |
|
213 * buffer containing the binary coded representation, and puts a pointer to it |
|
214 * onto the cleanup stack. |
|
215 * |
|
216 * @param aBinaryData The encoded binary representation. |
|
217 * @return The new CX509AltNameExt object. */ |
|
218 IMPORT_C static CX509AltNameExt* NewLC(const TDesC8& aBinaryData); |
|
219 |
|
220 /** Creates a new CX509AltNameExt object from the specified |
|
221 * buffer containing the binary coded representation, starting at the specified |
|
222 * offset. |
|
223 * |
|
224 * @param aBinaryData The encoded binary representation. |
|
225 * @param aPos The offset position from which to start decoding. |
|
226 * @return The new CX509AltNameExt object. */ |
|
227 IMPORT_C static CX509AltNameExt* NewL(const TDesC8& aBinaryData, TInt& aPos); |
|
228 |
|
229 /** Creates a new CX509AltNameExt object from the specified |
|
230 * buffer containing the binary coded representation, starting at the specified |
|
231 * offset, and puts a pointer to it onto the cleanup stack. |
|
232 * |
|
233 * @param aBinaryData The encoded binary representation. |
|
234 * @param aPos The offset position from which to start decoding. |
|
235 * @return The new CX509AltNameExt object. */ |
|
236 IMPORT_C static CX509AltNameExt* NewLC(const TDesC8& aBinaryData, TInt& aPos); |
|
237 |
|
238 /** Destructor. |
|
239 * |
|
240 * Frees all resources owned by the object, prior to its destruction. */ |
|
241 virtual ~CX509AltNameExt(); |
|
242 |
|
243 /** Gets a reference to the array of general names that forms the alternate name |
|
244 * extension. |
|
245 * |
|
246 * @return The array of general names. */ |
|
247 IMPORT_C const CArrayPtrFlat<CX509GeneralName>& AltName() const; |
|
248 |
|
249 /** Checks whether the corressponding elements of two equally sized arrays of X.509 general names |
|
250 * match. |
|
251 * |
|
252 * @param aExt An X.509 certificate extension object that defines an alternate name. |
|
253 * @return TRUE if all the elements in the arrays match. |
|
254 */ |
|
255 IMPORT_C TBool Match(const CX509AltNameExt& aExt) const; |
|
256 private: |
|
257 CX509AltNameExt(); |
|
258 void DoConstructL(const TDesC8& aBinaryData, TInt& aPos); |
|
259 CArrayPtrFlat<CX509GeneralName>* iAuthorityName; |
|
260 }; |
|
261 |
|
262 //3) key usage |
|
263 |
|
264 class CX509BitString : public CBase |
|
265 /** An X.509 bit string. |
|
266 * |
|
267 * @internalTechnology |
|
268 * @released |
|
269 * @since v6.0 */ |
|
270 { |
|
271 public: |
|
272 /** Destructor. |
|
273 * |
|
274 * Frees all resources owned by the object. */ |
|
275 ~CX509BitString(); |
|
276 |
|
277 /** Tests whether the specified bit is set. |
|
278 * |
|
279 * @param aBit The offset of the bit to be tested. This is a value relative to |
|
280 * zero. Any value greater than or equal to the length of the bit |
|
281 * string will always cause EFalse to be returned. |
|
282 * @return ETrue, if the bit is set; EFalse, otherwise. */ |
|
283 TBool IsSet(TInt aBit) const; |
|
284 |
|
285 /** Creates the X.509 bit string. |
|
286 * |
|
287 * @param aData A heap descriptor representing the bit string data. |
|
288 * @param aEffectiveLength The number of bits in the string. */ |
|
289 CX509BitString(HBufC8* aData, TInt aEffectiveLength); |
|
290 private: |
|
291 HBufC8* iData; |
|
292 TInt iLength; |
|
293 }; |
|
294 |
|
295 /** A list of values that defines what an X.509 key can be used for. |
55 /** A list of values that defines what an X.509 key can be used for. |
296 * These values can be ANDed together if a key has several usages. |
56 * These values can be ANDed together if a key has several usages. |
297 * |
57 * |
298 * @internalTechnology |
|
299 * @since v7.0 */ |
58 * @since v7.0 */ |
300 enum TX509KeyUsage |
59 enum TX509KeyUsage |
301 { |
60 { |
302 /** A digital signature. */ |
61 /** A digital signature. */ |
303 EX509DigitalSignature, |
62 EX509DigitalSignature, |
317 EX509EncipherOnly, |
76 EX509EncipherOnly, |
318 /** Decipher only. */ |
77 /** Decipher only. */ |
319 EX509DecipherOnly |
78 EX509DecipherOnly |
320 }; |
79 }; |
321 |
80 |
|
81 /** X509 Extension OIDs |
|
82 * |
|
83 * @since v9.5 */ |
|
84 |
|
85 //OIDS for the extensions we define here... |
|
86 _LIT(KBasicConstraints,"2.5.29.19"); |
|
87 _LIT(KSubjectAltName,"2.5.29.17"); |
|
88 _LIT(KIssuerAltName,"2.5.29.18"); |
|
89 _LIT(KKeyUsage,"2.5.29.15"); |
|
90 _LIT(KNameConstraints,"2.5.29.30"); |
|
91 _LIT(KPolicyConstraints,"2.5.29.36"); |
|
92 _LIT(KCertPolicies,"2.5.29.32"); |
|
93 _LIT(KPolicyMapping,"2.5.29.33"); |
|
94 _LIT(KAuthorityKeyId,"2.5.29.35"); |
|
95 _LIT(KSubjectKeyId,"2.5.29.14"); |
|
96 _LIT(KExtendedKeyUsage,"2.5.29.37"); |
|
97 _LIT(KAuthorityInfoAccess, "1.3.6.1.5.5.7.1.1"); |
|
98 _LIT(KInhibitAnyPolicy, "2.5.29.54"); |
|
99 |
|
100 // OIDs for access methods |
|
101 _LIT(KAccessMethodOCSP, "1.3.6.1.5.5.7.48.1"); |
|
102 |
|
103 //deprecated OIDs we might still encounter |
|
104 _LIT(KOldBasicConstraints,"2.5.29.10"); |
|
105 _LIT(KOldBasicConstraints2,"2.5.29.13"); |
|
106 _LIT(KOldSubjectAltName,"2.5.29.7"); |
|
107 _LIT(KOldIssuerAltName,"2.5.29.8"); |
|
108 _LIT(KOldNameConstraints,"2.5.29.11"); |
|
109 _LIT(KOldPolicyConstraints,"2.5.29.2"); |
|
110 _LIT(KOldPolicyConstraints2,"2.5.29.34"); |
|
111 _LIT(KOldCertPolicies,"2.5.29.3"); |
|
112 _LIT(KOldPolicyMapping,"2.5.29.5"); |
|
113 _LIT(KOldAuthorityKeyId,"2.5.29.1"); |
|
114 |
|
115 // Define OIDs for Symbian certificate constraints. |
|
116 _LIT(KDeviceIdListConstraint,"1.2.826.0.1.1796587.1.1.1.1"); |
|
117 _LIT(KSidListConstraint,"1.2.826.0.1.1796587.1.1.1.4"); |
|
118 _LIT(KVidListConstraint,"1.2.826.0.1.1796587.1.1.1.5"); |
|
119 _LIT(KCapabilitiesConstraint,"1.2.826.0.1.1796587.1.1.1.6"); |
|
120 |
|
121 //1) basic constraints... |
|
122 |
|
123 class CX509ExtensionBase : public CBase |
|
124 /** A certificate extension base class. |
|
125 * |
|
126 * @since v6.0 */ |
|
127 { |
|
128 protected: |
|
129 /** Second-phase constructor. |
|
130 * |
|
131 * @param aBinaryData The encoded binary representation. |
|
132 * @param aPos The position from which to start decoding. */ |
|
133 virtual void ConstructL(const TDesC8& aBinaryData, TInt& aPos); |
|
134 |
|
135 /** Implementation for second-phase construction. |
|
136 * |
|
137 * This is called by ConstructL(). |
|
138 * |
|
139 * @param aBinaryData The encoded binary representation. This is the same as |
|
140 * passed to ConstructL(). |
|
141 * @param aPos The position from which to start decoding. Note that the value |
|
142 * passed points, in effect, to the content, by passing the header data. */ |
|
143 virtual void DoConstructL(const TDesC8& aBinaryData, TInt& aPos) = 0; |
|
144 }; |
|
145 |
|
146 class CX509BasicConstraintsExt : public CX509ExtensionBase |
|
147 /** An X.509 certificate extension that defines basic constraints. |
|
148 * |
|
149 * It indicates whether the certificate belongs to a Certificate Authority or |
|
150 * an end Entity. |
|
151 * |
|
152 * @since v6.0 */ |
|
153 { |
|
154 public: |
|
155 /** Creates a new CX509BasicConstraintsExt object from the specified |
|
156 * buffer containing the binary coded representation. |
|
157 * |
|
158 * @param aBinaryData The encoded binary representation. |
|
159 * @return The new CX509BasicConstraintsExt object. */ |
|
160 IMPORT_C static CX509BasicConstraintsExt* NewL(const TDesC8& aBinaryData); |
|
161 |
|
162 /** Creates a new CX509BasicConstraintsExt object from the specified |
|
163 * buffer containing the binary coded representation, and puts a pointer to it |
|
164 * onto the cleanup stack. |
|
165 * |
|
166 * @param aBinaryData The encoded binary representation. |
|
167 * @return The new CX509BasicConstraintsExt object. */ |
|
168 IMPORT_C static CX509BasicConstraintsExt* NewLC(const TDesC8& aBinaryData); |
|
169 |
|
170 /** Creates a new CX509BasicConstraintsExt object from the specified |
|
171 * buffer containing the binary coded representation, starting at the specified |
|
172 * offset. |
|
173 * |
|
174 * @param aBinaryData The encoded binary representation. |
|
175 * @param aPos The offset position from which to start decoding. |
|
176 * @return The new CX509BasicConstraintsExt object. */ |
|
177 IMPORT_C static CX509BasicConstraintsExt* NewL(const TDesC8& aBinaryData, TInt& aPos); |
|
178 |
|
179 /** Creates a new CX509BasicConstraintsExt object from the specified |
|
180 * buffer containing the binary coded representation, starting at the specified |
|
181 * offset, and puts a pointer to it onto the cleanup stack. |
|
182 * |
|
183 * @param aBinaryData The encoded binary representation. |
|
184 * @param aPos The offset position from which to start decoding. |
|
185 * @return The new CX509BasicConstraintsExt object. */ |
|
186 IMPORT_C static CX509BasicConstraintsExt* NewLC(const TDesC8& aBinaryData, TInt& aPos); |
|
187 |
|
188 /** Destructor. |
|
189 * |
|
190 * Frees all resources owned by the object, prior to its destruction. */ |
|
191 virtual ~CX509BasicConstraintsExt(); |
|
192 |
|
193 /** Tests whether the certificate belongs to a Certificate Authority. |
|
194 * |
|
195 * @return ETrue, if the certificate belongs to a Certificate Authority; |
|
196 * EFalse, otherwise. */ |
|
197 IMPORT_C TBool IsCA() const; |
|
198 |
|
199 /** Gets the maximum number of certificates that can follow this one in the chain. |
|
200 * |
|
201 * @return The number of certificates. */ |
|
202 IMPORT_C TInt MaxChainLength() const;//0 if not set |
|
203 private: |
|
204 CX509BasicConstraintsExt(); |
|
205 void DoConstructL(const TDesC8& aBinaryData, TInt& aPos); |
|
206 TBool iIsCA; |
|
207 TInt iMaxChainLen; |
|
208 }; |
|
209 |
|
210 //2) alt name |
|
211 |
|
212 class CX509AltNameExt : public CX509ExtensionBase |
|
213 /** An X.509 certificate extension that defines an alternate name. |
|
214 * |
|
215 * It appears as an Issuer Alt Name extension or a Subject Alt Name extension |
|
216 * and is used to contain extra identifying information that will not fit into |
|
217 * a Distinguished Name. |
|
218 * |
|
219 * It consists of an array of X.509 General Names. |
|
220 * |
|
221 * @since v6.0 */ |
|
222 { |
|
223 public: |
|
224 /** Creates a new CX509AltNameExt object from the specified |
|
225 * buffer containing the binary coded representation. |
|
226 * |
|
227 * @param aBinaryData The encoded binary representation. |
|
228 * @return The new CX509AltNameExt object. */ |
|
229 IMPORT_C static CX509AltNameExt* NewL(const TDesC8& aBinaryData); |
|
230 |
|
231 /** Creates a new CX509AltNameExt object from the specified |
|
232 * buffer containing the binary coded representation, and puts a pointer to it |
|
233 * onto the cleanup stack. |
|
234 * |
|
235 * @param aBinaryData The encoded binary representation. |
|
236 * @return The new CX509AltNameExt object. */ |
|
237 IMPORT_C static CX509AltNameExt* NewLC(const TDesC8& aBinaryData); |
|
238 |
|
239 /** Creates a new CX509AltNameExt object from the specified |
|
240 * buffer containing the binary coded representation, starting at the specified |
|
241 * offset. |
|
242 * |
|
243 * @param aBinaryData The encoded binary representation. |
|
244 * @param aPos The offset position from which to start decoding. |
|
245 * @return The new CX509AltNameExt object. */ |
|
246 IMPORT_C static CX509AltNameExt* NewL(const TDesC8& aBinaryData, TInt& aPos); |
|
247 |
|
248 /** Creates a new CX509AltNameExt object from the specified |
|
249 * buffer containing the binary coded representation, starting at the specified |
|
250 * offset, and puts a pointer to it onto the cleanup stack. |
|
251 * |
|
252 * @param aBinaryData The encoded binary representation. |
|
253 * @param aPos The offset position from which to start decoding. |
|
254 * @return The new CX509AltNameExt object. */ |
|
255 IMPORT_C static CX509AltNameExt* NewLC(const TDesC8& aBinaryData, TInt& aPos); |
|
256 |
|
257 /** Destructor. |
|
258 * |
|
259 * Frees all resources owned by the object, prior to its destruction. */ |
|
260 virtual ~CX509AltNameExt(); |
|
261 |
|
262 /** Gets a reference to the array of general names that forms the alternate name |
|
263 * extension. |
|
264 * |
|
265 * @return The array of general names. */ |
|
266 IMPORT_C const CArrayPtrFlat<CX509GeneralName>& AltName() const; |
|
267 |
|
268 /** Checks whether the corressponding elements of two equally sized arrays of X.509 general names |
|
269 * match. |
|
270 * |
|
271 * @param aExt An X.509 certificate extension object that defines an alternate name. |
|
272 * @return TRUE if all the elements in the arrays match. |
|
273 */ |
|
274 IMPORT_C TBool Match(const CX509AltNameExt& aExt) const; |
|
275 private: |
|
276 CX509AltNameExt(); |
|
277 void DoConstructL(const TDesC8& aBinaryData, TInt& aPos); |
|
278 CArrayPtrFlat<CX509GeneralName>* iAuthorityName; |
|
279 }; |
|
280 |
322 class CX509KeyUsageExt : public CX509ExtensionBase |
281 class CX509KeyUsageExt : public CX509ExtensionBase |
323 /** An X.509 certificate extension that defines the uses to which a key may be put. |
282 /** An X.509 certificate extension that defines the uses to which a key may be put. |
324 * |
283 * |
325 * @publishedAll |
|
326 * @released |
|
327 * @since v6.0 */ |
284 * @since v6.0 */ |
328 { |
285 { |
329 public: |
286 public: |
330 /** Creates a new CX509KeyUsageExt object from the specified buffer |
287 /** Creates a new CX509KeyUsageExt object from the specified buffer |
331 * containing the binary coded representation. |
288 * containing the binary coded representation. |