-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathts_102941_v111_cz.asn
353 lines (288 loc) · 9.04 KB
/
ts_102941_v111_cz.asn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
ITStandp0v0 { itu-t(0) identified-organization(4) etsi(0) itsDomain(5) wg5(5) itstandp(2941) operation(0) version0(0)}
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
EnrolmentRequest ::= SEQUENCE {
signerEnrolRequest SignerIdentifier,
enrolCertRequest ToBeSignedEnrolmentCertificateRequest,
signature Signature
}
EnrolmentResponse ::= CHOICE {
successfulEnrolment SuccesfulEnrolment,
failedEnrolment FailedEnrolment
}
SuccesfulEnrolment ::= SEQUENCE {
ackRequest NotRequested,
signedCertChain CertificateChain,
crlPath NullCrl
}
AuthorizationRequest ::= SEQUENCE {
signerAuthRequest SignerIdentifier,
authCertRequest AuthCertRequest,
signature Signature
}
AuthorizationResponse ::= CHOICE {
successfulExplicitAuthorization SuccessfulExplicitAuthorization,
-- TODO: successfulImplicitAuthorization SuccessfulImplicitAuthorization,
failedAuthorization FailedAuthorization
}
AuthCertRequest ::= CHOICE {
anonRequest ToBeSignedAuthCertReq-anon,
idNonLocRequest ToBeSignedAuthCertReq-idNonLoc,
idLocRequest ToBeSignedAuthCertReq-idLoc
}
ToBeSignedEnrolmentCertificateRequest ::= SEQUENCE {
versionAndType ImplicitOrExplicit,
requestTime ItsTime,
subjectType SecDataExchCsr,
cf UseStartVal-AndOr-Lifetime,
enrolCertSpecificData SecDataExchCaCertSpecificData,
expiration ItsTime,
startValidity ItsTime OPTIONAL,
lifetime CertificateDuration OPTIONAL,
verificationKey PublicKey,
responseEncryptionKey PublicKey
}
ToBeSignedAuthCertReq-anon ::= SEQUENCE {
versionAndType ImplicitOrExplicit,
requestTime ItsTime,
subjectType SecDataExchAnon,
cf UseStartVal-AndOr-Lifetime,
authCertSpecificData SecDataExchAnonymousCertSpecificData,
startValidity ItsTime OPTIONAL,
lifetime CertificateDuration OPTIONAL,
responseEncryptionKey PublicKey
}
ToBeSignedAuthCertReq-idNonLoc ::= SEQUENCE {
versionAndType ImplicitOrExplicit,
requestTime ItsTime,
subjectType SecDataExchAnon,
cf UseStartVal-AndOr-Lifetime,
authCertSpecificData SecDataExchIdentifiedNotLocalizedCertSpecificData,
startValidity ItsTime OPTIONAL,
lifetime CertificateDuration OPTIONAL,
responseEncryptionKey PublicKey
}
ToBeSignedAuthCertReq-idLoc ::= SEQUENCE {
versionAndType ImplicitOrExplicit,
requestTime ItsTime,
subjectType SecDataExchAnon,
cf UseStartVal-AndOr-Lifetime,
authCertSpecificData SecDataExchIdentifiedLocalizedCertSpecificData,
startValidity ItsTime OPTIONAL,
lifetime CertificateDuration OPTIONAL,
responseEncryptionKey PublicKey
}
CertificateChain ::= SEQUENCE {
intermediateCerts SEQUENCE OF IntermediateCertificate,
rootCertificate RootCertificate
}
RootCertificate ::= ExplicitCertificate
IntermediateCertificate ::= CHOICE {
explicitCertificate ExplicitCertificate
-- implicitCertificate ImplicitCertificate
}
ExplicitCertificate ::= OCTET STRING
FailedEnrolment ::= FailedCertResponse
FailedAuthorization ::= FailedCertResponse
SuccessfulExplicitAuthorization ::= SEQUENCE {
ackRequest NotRequested,
signedCertChain CertificateChain,
crlPath Crl
}
FailedCertResponse ::= SEQUENCE {
signerEnrolResp SignerIdentifier,
requestHash OCTET STRING (SIZE (10)),
enrolResult CertificateRequestErrorCode,
signature Signature
}
CertificateRequestErrorCode ::= ENUMERATED {
verification-failure(0),
csr-cert-expired(1),
csr-cert-revoked(2),
csr-cert-unauthorized(3),
request-denied(4),
csr-cert-unknown (5),
canonical-identity-unknown (6)
}
SignerIdentifier ::= SEQUENCE {
type Integer8,
digest CertId8,
id OCTET STRING
}
SignerIdentifierType ::= Integer8
self SignerIdentifierType ::= 0
certificateDigestWithEcdsap224 SignerIdentifierType ::= 1
certificateDigestWithEcdsap256 SignerIdentifierType ::= 2
certificate SignerIdentifierType ::= 3
certificateChain SignerIdentifierType ::= 4
unknownSigner SignerIdentifierType ::= 5
SignerIdType ::= SignerIdentifierType (certificate | certificateChain)
CertId8 ::= OCTET STRING (SIZE (8))
VersionAndType ::= Integer8
explicitCert VersionAndType ::= 2
implicitCert VersionAndType ::= 3
ExplicitCert ::= VersionAndType (explicitCert)
ImplicitCert ::= VersionAndType (implicitCert)
ImplicitOrExplicit ::= VersionAndType (explicitCert | implicitCert)
SubjectType ::= Integer8
secDataExchAnonymousSubj SubjectType ::= 0
secDataExchIdentifiedNotLocalizedSubj SubjectType ::= 1
secDataExchidentifiedLocalizedSubj SubjectType ::= 2
secDataExchCsrSubj SubjectType ::= 3
wsaSubj SubjectType ::= 4
wsaCsrSubj SubjectType ::= 5
secDataExchCaSubj SubjectType ::= 6
rootCaSubj SubjectType ::= 255
SecDataExchCa ::= SubjectType (secDataExchCaSubj)
RootCa ::= SubjectType (rootCaSubj)
SecDataExchCsr ::= SubjectType (secDataExchCsrSubj)
SecDataExchAnon ::= SubjectType (secDataExchAnonymousSubj)
SecDataExchIdNonLoc ::= SubjectType (secDataExchIdentifiedNotLocalizedSubj)
SecDataExchIdLoc ::= SubjectType (secDataExchidentifiedLocalizedSubj)
SecDataExchCaTypes ::= SubjectType (secDataExchAnonymousSubj | secDataExchidentifiedLocalizedSubj)
IntermediateCert ::= SubjectType (ALL) -- Correct is ALL EXCEPT (rootCaSubj)
CertificateContentFlags ::= BIT STRING {
useStartValidity (0),
lifetimeIsDuration (1),
encryptionKey (2)
}
UseStartValidity ::= CertificateContentFlags({useStartValidity})
LifetimeIsDuration ::= CertificateContentFlags({lifetimeIsDuration})
UseStartVal-AndOr-Lifetime ::= CertificateContentFlags(ALL) -- Correct is ({useStartValidity} | (ALL EXCEPT {encryptionKey}) )
SecDataExchCaCertSpecificData ::= SecDataExchCaScope
SecDataExchAnonymousCertSpecificData ::= AnonymousScope
SecDataExchIdentifiedNotLocalizedCertSpecificData ::= IdentifiedNotLocalizedScope
SecDataExchIdentifiedLocalizedCertSpecificData ::= IdentifiedScope
SecDataExchCaScope ::= SEQUENCE {
eaId IA5String (SIZE (0..32)), -- name of EA
permittedSubjectTypes SecDataExchCaTypes,
permissions PsidArray,
region GeographicRegion
}
IdentifiedScope ::= SEQUENCE {
subject-name OCTET STRING,
permissions PsidSspArray
}
IdentifiedNotLocalizedScope ::= SEQUENCE {
subject-name OCTET STRING,
permissions PsidSspArray
}
AnonymousScope ::= SEQUENCE {
additional-data OCTET STRING,
permissions PsidSspArray,
region GeographicRegion
}
PsidSspArray ::= SEQUENCE {
type SpecifiedArray,
permissions-list PsidSspList
}
PsidSsp ::= SEQUENCE {
its-aid ITS-AID,
ssp SSP
}
PsidSspList ::= SEQUENCE OF PsidSsp
SSP ::= OCTET STRING
PsidArray ::= SEQUENCE {
type ArrayType,
permissions-list PsidList
}
ArrayType ::= Integer8
fromIssuer ArrayType ::= 0
specified ArrayType ::= 1
unknownType ArrayType ::= 2
SpecifiedArray ::= ArrayType (specified)
PsidList ::= SEQUENCE OF Psid
Psid ::= CHOICE {
its-aid ITS-AID,
port Port
}
ITS-AID ::= OCTET STRING (SIZE (1..4))
Port ::= SEQUENCE {
portIndicator PortIndicator,
portNumber PortNumber
}
PortIndicator ::= OCTET STRING (SIZE (1))
PortNumber ::= OCTET STRING (SIZE (2))
GeographicRegion ::= SEQUENCE {
region-type RegionType,
circlular-region CircularRegion OPTIONAL,
rectangular-region RectangularRegion OPTIONAL,
polygonial-region PolygonialRegion OPTIONAL,
other-region OCTET STRING OPTIONAL
}
RegionType ::= Integer8
CircularRegion ::= SEQUENCE {
center TwoDLocation,
radius Integer16
}
RectangularRegion ::= SEQUENCE {
upper-left TwoDLocation,
lower-right TwoDLocation
}
PolygonialRegion ::= SEQUENCE OF TwoDLocation
TwoDLocation ::= SEQUENCE {
latitude Sint32,
longitude Sint32
}
CertificateDuration ::= SEQUENCE {
timeUnit TimeUnit,
timeValue INTEGER (0..8191)
}
PublicKey ::= SEQUENCE {
algorithm PKAlgorithm,
public-key EccPublicKey
}
PKAlgorithm ::= INTEGER
ecdsaNistp224WithSha224 PKAlgorithm ::= 0
ecdsaNistp256WithSha256 PKAlgorithm ::= 1
eciesNistp256 PKAlgorithm ::= 2
unknownAlgorithm PKAlgorithm ::= 3
EccPublicKey ::= SEQUENCE {
type EccPublicKeyType,
x CHOICE {
ecdsa-nistp224-with-sha224-X Integer28,
ecdsa-nistp256-with-sha256-X Integer32
},
y CHOICE {
ecdsa-nistp224-with-sha224-Y Integer28,
ecdsa-nistp256-with-sha256-Y Integer32
} OPTIONAL
}
EccPublicKeyType ::= ENUMERATED {
xCoordinateOnly (0),
compressedLsbY0 (2),
compressedLsbY1 (3),
uncompressed (4)
}
Signature ::= EcdsaSignature
EcdsaSignature ::= SEQUENCE {
r EccPublicKey,
s CHOICE {
ecdsa-nistp224-with-sha224-s Integer28,
ecdsa-nistp256-with-sha256-s Integer32
}
}
AcknowledgeRequest ::= BOOLEAN
requested AcknowledgeRequest ::= TRUE
notRequested AcknowledgeRequest ::= FALSE
Requested ::= AcknowledgeRequest (requested)
NotRequested ::= AcknowledgeRequest (notRequested)
TimeUnit ::= Integer3
seconds TimeUnit ::= 0
minutes TimeUnit ::= 1
hours TimeUnit ::= 2
sixtyHours TimeUnit ::= 3
years TimeUnit ::= 4
Crl ::= CHOICE {
-- TODO: validCrl ValidCrl,
nullCrl NullCrl
}
NullCrl ::= NULL
ItsTime ::= Integer32
Integer3 ::= INTEGER (0..7)
Integer8 ::= INTEGER (0..255)
Integer16 ::= INTEGER (0..65535)
Integer28 ::= INTEGER (0..268435456)
Integer32 ::= INTEGER (0..4294967295)
Sint32 ::= INTEGER (-65535..65535)
END