LibItsSecurity_Templates.ttcn3 3.28 KB
Newer Older
garciay's avatar
garciay committed
/**
 *  @author   ETSI / STF481
 *  @version  $URL$
 *            $Id$
 *  @desc     Module containing templates for Security Protocol
 *
 */
module LibItsSecurity_Templates {
    
    // LibItsSecurity
    import from LibItsSecurity_TypesAndValues all;
    
garciay's avatar
garciay committed
    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
garciay's avatar
garciay committed
    
    group utPrimitives {
        
    } // End of group utPrimitives
    
} // End of module LibItsSecurity_Templates