Newer
Older
/**
* @author ETSI / STF481
* @version $URL$
* $Id$
* @desc Module containing templates for Security Protocol
*
*/
module LibItsSecurity_Templates {
// LibItsSecurity
import from LibItsSecurity_TypesAndValues all;
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
group dummyBasicFormatElements {
group dummyBasicFormatElementsSend {
/**
* @desc Generic send template for EccPoint description
* @see Draft ETSI TS 103 097 V1.1.6 Clause 4.2.5 EccPoint
* @see Draft ETSI TS 103 097 V1.1.6 Table 2: Derivation of field sizes depending on the used algorithm
*/
template (value) PublicKeyContainer m_eccPoint_dummy := {
eccPoint := {
algorithm := e_ecdsa_nistp256_with_sha256,
field_size := 32,
type_ := e_x_coordinate_only,
x := 'CAFEDECACAFEDECACAFEDECACAFEDECACAFEDECACAFEDECACAFEDECACAFEDECA'O, // TODO Use PIXITs?
y := omit
}
} // End of type m_publicKey_eccPoint_dummy
/**
* @desc
*/
template (value) PublicKey m_publicKey_eccPoint_dummy := {
algorithm := e_ecdsa_nistp256_with_sha256,
public_key := m_eccPoint_dummy
} // End of type PublicKey
} // End of group dummyBasicFormatElementsSend
} // End of group dummyBasicFormatElements
group dummyMessages {
group dummyMessagesRecv {
/**
* @desc Generic received template for SecuredMessage
*/
template (present) SecuredMessage mw_securedMessage_dummy := {
protocol_version := 2,
security_profile := ?,
header_fields := ?,
payload_fields := ?,
trailer_fields := ?
} // End of template mw_securedMessage_dummy
/**
* @desc Generic received template for SecuredMessage
*/
template (present) Payload mw_signedPayload_dummy := {
type_ := e_signed,
payload := ?
} // End of template mw_signedPayload_dummy
/**
* @desc Generic received template for SecuredMessage
*/
template (present) Payload mw_unsecuredPayload_dummy := {
type_ := e_unsecured,
payload := ?
} // End of template mw_unsecuredPayload_dummy
} // End of group dummyMessagesRecv
} // End of group dummyMessages
group securityProfiles {
group camSecurityProfiles {
} // End of group camSecurityProfiles
group denmSecurityProfiles {
} // End of group denmSecurityProfiles
group otherSecurityProfiles {
} // End of group otherSecurityProfiles
} // End of group securityProfiles