~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/asn1/test/asn1_SUITE_data/H235-SECURITY-MESSAGES.asn

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
H235-SECURITY-MESSAGES DEFINITIONS AUTOMATIC TAGS ::=
 
2
BEGIN
 
3
 
 
4
-- EXPORTS All
 
5
 
 
6
ChallengeString ::= OCTET STRING (SIZE(8..128))
 
7
TimeStamp                       ::= INTEGER(1..4294967295) -- seconds since 00:00 1/1/1970 UTC
 
8
RandomVal                       ::= INTEGER
 
9
Password                                ::= BMPString (SIZE (1..128))
 
10
Identifier                      ::= BMPString (SIZE (1..128))
 
11
KeyMaterial                     ::= BIT STRING(SIZE(1..2048))
 
12
 
 
13
NonStandardParameter ::= SEQUENCE
 
14
{
 
15
        nonStandardIdentifier   OBJECT IDENTIFIER,
 
16
        data                    OCTET STRING
 
17
}
 
18
 
 
19
-- if local octet representations of these bit strings are used they shall 
 
20
-- utilize standard Network Octet ordering (e.g. Big Endian)
 
21
DHset ::= SEQUENCE  
 
22
{
 
23
        halfkey         BIT STRING (SIZE(0..2048)), -- = g^x mod n
 
24
        modSize         BIT STRING (SIZE(0..2048)), --  n
 
25
        generator       BIT STRING (SIZE(0..2048)), -- g
 
26
        ...
 
27
}
 
28
 
 
29
TypedCertificate ::= SEQUENCE
 
30
{
 
31
        type                    OBJECT IDENTIFIER,
 
32
        certificate     OCTET STRING,
 
33
        ...
 
34
}
 
35
 
 
36
AuthenticationMechanism  ::=CHOICE 
 
37
{
 
38
        dhExch          NULL, -- Diffe-Hellman
 
39
        pwdSymEnc       NULL, -- password with symmetric encryption
 
40
        pwdHash         NULL, -- password with hashing
 
41
        certSign                NULL, -- Certificate with signature
 
42
        ipsec           NULL, -- IPSEC based connection
 
43
        tls                     NULL,
 
44
        nonStandard     NonStandardParameter, -- something else.
 
45
        ...
 
46
}
 
47
 
 
48
ClearToken              ::= SEQUENCE  -- a `token' may contain multiple value types.
 
49
{       
 
50
        timeStamp               TimeStamp OPTIONAL,
 
51
        password                        Password OPTIONAL,
 
52
        dhkey                   DHset OPTIONAL,
 
53
        challenge               ChallengeString OPTIONAL,
 
54
        random                  RandomVal OPTIONAL,
 
55
        certificate             TypedCertificate OPTIONAL,
 
56
        generalID               Identifier OPTIONAL,
 
57
        nonStandard             NonStandardParameter OPTIONAL,
 
58
        ...
 
59
}
 
60
 
 
61
--
 
62
-- Start all the cryptographic parameterized types here....
 
63
--
 
64
 
 
65
 
 
66
SIGNED { ToBeSigned } ::= SEQUENCE {
 
67
   toBeSigned   ToBeSigned,
 
68
   algorithmOID  OBJECT IDENTIFIER, 
 
69
   paramS               Params, -- any 'runtime' parameters
 
70
   signature    BIT STRING
 
71
} ( CONSTRAINED BY { -- Verify or Sign Certificate -- } )
 
72
 
 
73
 
 
74
ENCRYPTED { ToBeEncrypted } ::= SEQUENCE {
 
75
   algorithmOID         OBJECT IDENTIFIER, 
 
76
   paramS                       Params, -- any 'runtime' parameters
 
77
   encryptedData        OCTET STRING
 
78
} ( CONSTRAINED BY { -- Encrypt or Decrypt -- ToBeEncrypted } )
 
79
 
 
80
HASHED { ToBeHashed } ::= SEQUENCE {
 
81
   algorithmOID         OBJECT IDENTIFIER, 
 
82
   paramS                       Params, -- any 'runtime' parameters
 
83
   hash                         BIT STRING
 
84
} ( CONSTRAINED BY { -- Hash -- ToBeHashed } )
 
85
 
 
86
IV8 ::= OCTET STRING (SIZE(8))
 
87
 
 
88
-- signing algorithm used must select one of these types of parameters 
 
89
-- needed by receiving end of signature.
 
90
 
 
91
Params ::= SEQUENCE {
 
92
        ranInt  INTEGER OPTIONAL, -- some integer value
 
93
        iv8             IV8 OPTIONAL,   -- 8 octet initialization vector
 
94
        ...
 
95
}
 
96
 
 
97
EncodedGeneralToken ::= TYPE-IDENTIFIER.&Type (ClearToken -- general usage token -- )
 
98
PwdCertToken ::= ClearToken (WITH COMPONENTS {..., timeStamp PRESENT, generalID PRESENT})
 
99
EncodedPwdCertToken ::= TYPE-IDENTIFIER.&Type (PwdCertToken) 
 
100
 
 
101
CryptoToken::= CHOICE
 
102
{
 
103
 
 
104
        cryptoEncryptedToken SEQUENCE -- General purpose/application specific token
 
105
        {
 
106
                tokenOID        OBJECT IDENTIFIER, 
 
107
                token           ENCRYPTED { EncodedGeneralToken }
 
108
        },
 
109
        cryptoSignedToken  SEQUENCE -- General purpose/application specific token
 
110
        {
 
111
                tokenOID  OBJECT IDENTIFIER, 
 
112
                token           SIGNED { EncodedGeneralToken }
 
113
        },
 
114
        cryptoHashedToken SEQUENCE -- General purpose/application specific token
 
115
        {
 
116
                tokenOID                OBJECT IDENTIFIER, 
 
117
                hashedVals              ClearToken,
 
118
                token HASHED { EncodedGeneralToken }
 
119
        },
 
120
        cryptoPwdEncr   ENCRYPTED { EncodedPwdCertToken },
 
121
        ...
 
122
}
 
123
 
 
124
-- These allow the passing of session keys within the H.245 OLC structure.
 
125
-- They are encoded as standalone ASN.1 and based as an OCTET STRING within H.245
 
126
H235Key ::=CHOICE  -- this is used with the H.245 'h235Key' field
 
127
{
 
128
        secureChannel   KeyMaterial,
 
129
        sharedSecret            ENCRYPTED {EncodedKeySyncMaterial},
 
130
        certProtectedKey        SIGNED { EncodedKeySignedMaterial },
 
131
        ...
 
132
}
 
133
 
 
134
KeySignedMaterial ::= SEQUENCE {
 
135
        generalId               Identifier, -- slave's alias
 
136
        mrandom RandomVal, -- master's random value
 
137
        srandom RandomVal OPTIONAL, -- slave's random value
 
138
        timeStamp       TimeStamp OPTIONAL, -- master's timestamp for unsolicted EU
 
139
        encrptval       ENCRYPTED {EncodedKeySyncMaterial }
 
140
}
 
141
EncodedKeySignedMaterial ::= TYPE-IDENTIFIER.&Type (KeySignedMaterial)
 
142
 
 
143
KeySyncMaterial ::=SEQUENCE
 
144
{
 
145
        generalID               Identifier,
 
146
        keyMaterial     KeyMaterial,
 
147
        ...
 
148
}
 
149
EncodedKeySyncMaterial  ::=TYPE-IDENTIFIER.&Type (KeySyncMaterial)
 
150
 
 
151
H235CertificateSignature        ::=SEQUENCE
 
152
{
 
153
        certificate                     TypedCertificate,
 
154
        responseRandom          RandomVal,
 
155
        requesterRandom RandomVal OPTIONAL,
 
156
        signature                       SIGNED { EncodedReturnSig },
 
157
        ...
 
158
}
 
159
 
 
160
ReturnSig ::= SEQUENCE {
 
161
        generalId                       Identifier, -- slave's alias
 
162
        responseRandom  RandomVal,
 
163
        requestRandom           RandomVal OPTIONAL,
 
164
        certificate             TypedCertificate OPTIONAL -- requested certificate
 
165
}
 
166
 
 
167
EncodedReturnSig ::= TYPE-IDENTIFIER.&Type (ReturnSig)
 
168
 
 
169
 
 
170
END     -- End of H235-SECURITY-MESSAGES DEFINITIONS