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
354
|
-- H235-SECURITY-MESSAGES.asn
--
-- Taken from ITU ASN.1 database
-- http://www.itu.int/ITU-T/asn1/database/itu-t/h/h235.0/2005/H235-SECURITY-MESSAGES.asn
--
-- Module H235-SECURITY-MESSAGES (H.235.0:09/2005)
H235-SECURITY-MESSAGES DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
-- EXPORTS All
ChallengeString ::= OCTET STRING(SIZE (8..128))
TimeStamp ::= INTEGER(1..4294967295) -- seconds since 00:00
-- 1/1/1970 UTC
RandomVal ::= INTEGER -- 32-bit Integer
Password ::= BMPString(SIZE (1..128))
Identifier ::= BMPString(SIZE (1..128))
KeyMaterial ::= BIT STRING(SIZE (1..2048))
NonStandardParameter ::= SEQUENCE {
nonStandardIdentifier OBJECT IDENTIFIER,
data OCTET STRING
}
-- if local octet representations of these bit strings are used they shall
-- utilize standard Network Octet ordering (e.g., Big Endian)
DHset ::= SEQUENCE {
halfkey BIT STRING(SIZE (0..2048)), -- = g^x mod n
modSize BIT STRING(SIZE (0..2048)), -- n
generator BIT STRING(SIZE (0..2048)), -- g
...
}
ECpoint ::=
SEQUENCE -- uncompressed (x, y) affine coordinate representation of
-- an elliptic curve point
{
x BIT STRING(SIZE (0..511)) OPTIONAL,
y BIT STRING(SIZE (0..511)) OPTIONAL,
...
}
ECKASDH ::=
CHOICE -- parameters for elliptic curve key agreement scheme Diffie-Hellman
{
eckasdhp
SEQUENCE-- parameters for elliptic curves of prime field-- {public-key
ECpoint, -- This field contains representation of --
-- the ECKAS-DHp public key value. This field contains the
-- initiator's ECKAS-DHp public key value (aP) when this
-- information element is sent from originator to receiver. This
-- field contains the responder's ECKAS-DHp public key value (bP)
-- when this information element is sent back from receiver to
-- originator.
modulus
BIT STRING
(SIZE (0..
511)), -- This field contains --
-- representation of the ECKAS-DHp public modulus value (p).
base
ECpoint, -- This field contains representation of the --
-- ECKAS-DHp public base (P).
weierstrassA
BIT STRING
(SIZE (0..
511)), -- This field contains --
-- representation of the ECKAS-DHp Weierstrass coefficient (a).
weierstrassB
BIT STRING
(SIZE (0..
511))-- This field contains --
-- representation of the ECKAS-DHp Weierstrass coefficient (b).
},
eckasdh2
SEQUENCE-- parameters for elliptic curves of characteristic 2 -- {public-key
ECpoint, -- This field contains representation of --
-- the ECKAS-DH2 public key value.
-- This field contains the initiator's ECKAS-DH2 public key value
-- (aP) when this information element is sent from originator to
-- receiver. This field contains the responder's ECKAS-DH2 public
-- key value (bP) when this information element is sent back from
-- receiver to originator.
fieldSize
BIT STRING
(SIZE (0..
511)), -- This field contains --
-- representation of the ECKAS-DH2 field size value (m).
base
ECpoint, -- This field contains representation of the --
-- ECKAS-DH2 public base (P).
weierstrassA
BIT STRING
(SIZE (0..
511)), -- This field contains --
-- representation of the ECKAS-DH2 Weierstrass coefficient (a).
weierstrassB
BIT STRING
(SIZE (0..
511))-- This field contains --
-- representation of the ECKAS-DH2 Weierstrass coefficient (b).
},
...
}
ECGDSASignature ::=
SEQUENCE -- parameters for elliptic curve digital signature
-- algorithm
{
r BIT STRING(SIZE (0..511)), -- This field contains the
-- representation of the r component of the ECGDSA digital
-- signature.
s BIT STRING(SIZE (0..511))-- This field contains the --
-- representation of the s component of the ECGDSA digital
-- signature.
}
TypedCertificate ::= SEQUENCE {
type OBJECT IDENTIFIER,
certificate OCTET STRING,
...
}
AuthenticationBES ::= CHOICE {
default NULL, -- encrypted ClearToken
radius NULL, -- RADIUS-challenge/response
...
}
AuthenticationMechanism ::= CHOICE {
dhExch NULL, -- Diffie-Hellman
pwdSymEnc NULL, -- password with symmetric encryption
pwdHash NULL, -- password with hashing
certSign NULL, -- Certificate with signature
ipsec NULL, -- IPSEC based connection
tls NULL,
nonStandard NonStandardParameter, -- something else.
...,
authenticationBES AuthenticationBES, -- user authentication for BES
keyExch OBJECT IDENTIFIER -- key exchange profile
}
ClearToken ::= SEQUENCE -- a "token" may contain multiple value types.
{
tokenOID OBJECT IDENTIFIER,
timeStamp TimeStamp OPTIONAL,
password Password OPTIONAL,
dhkey DHset OPTIONAL,
challenge ChallengeString OPTIONAL,
random RandomVal OPTIONAL,
certificate TypedCertificate OPTIONAL,
generalID Identifier OPTIONAL,
nonStandard NonStandardParameter OPTIONAL,
...,
eckasdhkey ECKASDH OPTIONAL, -- elliptic curve Key Agreement
-- Scheme-Diffie Hellman Analogue
-- (ECKAS-DH)
sendersID Identifier OPTIONAL,
h235Key H235Key OPTIONAL, -- central distributed key in V3
profileInfo SEQUENCE OF ProfileElement OPTIONAL -- profile-specific
}
-- An object identifier should be placed in the tokenOID field when a
-- ClearToken is included directly in a message (as opposed to being
-- encrypted). In all other cases, an application should use the
-- object identifier { 0 0 } to indicate that the tokenOID value is not
-- present.
-- Start all the cryptographic parameterized types here...
--
ProfileElement ::= SEQUENCE {
elementID INTEGER(0..255), -- element identifier, as defined by
-- profile
paramS Params OPTIONAL, -- any element-specific parameters
element Element OPTIONAL, -- value in required form
...
}
Element ::= CHOICE {
octets OCTET STRING,
integer INTEGER,
bits BIT STRING,
name BMPString,
flag BOOLEAN,
...
}
SIGNED{ToBeSigned} ::= SEQUENCE {
toBeSigned ToBeSigned,
algorithmOID OBJECT IDENTIFIER,
paramS Params, -- any "runtime" parameters
signature BIT STRING -- could be an RSA or an ASN.1 coded ECGDSA Signature
}(CONSTRAINED BY { -- Verify or Sign Certificate --})
ENCRYPTED{ToBeEncrypted} ::= SEQUENCE {
algorithmOID OBJECT IDENTIFIER,
paramS Params, -- any "runtime" parameters
encryptedData OCTET STRING
}(CONSTRAINED BY { -- Encrypt or Decrypt --ToBeEncrypted})
HASHED{ToBeHashed} ::= SEQUENCE {
algorithmOID OBJECT IDENTIFIER,
paramS Params, -- any "runtime" parameters
hash BIT STRING
}(CONSTRAINED BY { -- Hash --ToBeHashed})
IV8 ::= OCTET STRING(SIZE (8)) -- initial value for 64-bit block ciphers
IV16 ::= OCTET STRING(SIZE (16)) -- initial value for 128-bit block ciphers
-- signing algorithm used must select one of these types of parameters
-- needed by receiving end of signature.
Params ::= SEQUENCE {
ranInt INTEGER OPTIONAL, -- some integer value
iv8 IV8 OPTIONAL, -- 8-octet initialization vector
...,
iv16 IV16 OPTIONAL, -- 16-octet initialization vector
iv OCTET STRING OPTIONAL, -- arbitrary length initialization vector
clearSalt OCTET STRING OPTIONAL -- unencrypted salting key for encryption
}
EncodedGeneralToken ::=
TYPE-IDENTIFIER.&Type(ClearToken -- general usage token --)
PwdCertToken ::=
ClearToken(WITH COMPONENTS {
...,
timeStamp PRESENT,
generalID PRESENT
})
EncodedPwdCertToken ::= TYPE-IDENTIFIER.&Type(PwdCertToken)
CryptoToken ::= CHOICE {
cryptoEncryptedToken
SEQUENCE-- General purpose/application specific token-- {tokenOID
OBJECT
IDENTIFIER,
token
ENCRYPTED
{EncodedGeneralToken}
},
cryptoSignedToken
SEQUENCE-- General purpose/application specific token-- {tokenOID
OBJECT
IDENTIFIER,
token
SIGNED
{EncodedGeneralToken}
},
cryptoHashedToken
SEQUENCE-- General purpose/application specific token-- {tokenOID
OBJECT
IDENTIFIER,
hashedVals
ClearToken,
token
HASHED
{EncodedGeneralToken}
},
cryptoPwdEncr ENCRYPTED{EncodedPwdCertToken},
...
}
-- These allow the passing of session keys within the H.245 OLC structure.
-- They are encoded as standalone ASN.1 and based as an OCTET STRING within
-- H.245
H235Key ::=
CHOICE -- This is used with the H.245 or ClearToken "h235Key" field
{
secureChannel KeyMaterial,
sharedSecret ENCRYPTED{EncodedKeySyncMaterial},
certProtectedKey SIGNED{EncodedKeySignedMaterial},
...,
secureSharedSecret V3KeySyncMaterial -- for H.235 V3 endpoints
}
KeySignedMaterial ::= SEQUENCE {
generalId Identifier, -- slave's alias
mrandom RandomVal, -- master's random value
srandom RandomVal OPTIONAL, -- slave's random value
timeStamp TimeStamp OPTIONAL, -- master's timestamp for unsolicited EU
encrptval ENCRYPTED{EncodedKeySyncMaterial}
}
EncodedKeySignedMaterial ::= TYPE-IDENTIFIER.&Type(KeySignedMaterial)
H235CertificateSignature ::= SEQUENCE {
certificate TypedCertificate,
responseRandom RandomVal,
requesterRandom RandomVal OPTIONAL,
signature SIGNED{EncodedReturnSig},
...
}
ReturnSig ::= SEQUENCE {
generalId Identifier, -- slave's alias
responseRandom RandomVal,
requestRandom RandomVal OPTIONAL,
certificate TypedCertificate OPTIONAL -- requested certificate
}
EncodedReturnSig ::= TYPE-IDENTIFIER.&Type(ReturnSig)
KeySyncMaterial ::= SEQUENCE {
generalID Identifier,
keyMaterial KeyMaterial,
...
}
EncodedKeySyncMaterial ::= TYPE-IDENTIFIER.&Type(KeySyncMaterial)
V3KeySyncMaterial ::= SEQUENCE {
generalID Identifier OPTIONAL, -- peer terminal ID
algorithmOID OBJECT IDENTIFIER OPTIONAL, -- encryption algorithm
paramS Params, -- IV
encryptedSessionKey OCTET STRING OPTIONAL, -- encrypted session key
encryptedSaltingKey OCTET STRING OPTIONAL, -- encrypted media salting
-- key
clearSaltingKey OCTET STRING OPTIONAL, -- unencrypted media salting
-- key
paramSsalt Params OPTIONAL, -- IV (and clear salt) for salting
-- key encryption
keyDerivationOID OBJECT IDENTIFIER OPTIONAL, -- key derivation
-- method
...,
genericKeyMaterial OCTET STRING OPTIONAL -- ASN.1-encoded key material--
-- form is dependent on associated media encryption tag
}
END -- End of H235-SECURITY-MESSAGES DEFINITIONS
-- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
|