blob: 68fc782f338f99fe610856ceb9d125357e1f4443 (
plain) (
blame)
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
|
ParamBasic DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
General1{T,T:val} ::= SEQUENCE {
number INTEGER,
string T DEFAULT val
}
T11 ::= General1{PrintableString,"hej"}
T12 ::= General1{BIT STRING,'1010'B}
General2{T} ::= SEQUENCE {
number INTEGER,
string T
}
T21 ::= General2{PrintableString}
T22 ::= General2{BIT STRING}
--
-- Test a class parameter that is the governor for another parameter.
--
AlgorithmIdentifier{ALGORITHM-TYPE, ALGORITHM-TYPE:AlgorithmSet} ::=
SEQUENCE {
algorithm ALGORITHM-TYPE.&id ({AlgorithmSet}),
type ALGORITHM-TYPE.&Type ({AlgorithmSet}{@algorithm})
}
AnAlgorithm ::= AlgorithmIdentifier{ SIGNATURE-ALGORITHM,
{ {KEY 1 CONTAINING INTEGER} |
{KEY 2 CONTAINING BOOLEAN} } }
SIGNATURE-ALGORITHM ::= CLASS {
&id INTEGER UNIQUE,
&Type
} WITH SYNTAX {
KEY &id CONTAINING &Type
}
END
|