Commit 1edd245b authored by garciay's avatar garciay
Browse files

Add trailer_fields length in ToBeSignedSecuredMessage data structure as...

Add trailer_fields length in ToBeSignedSecuredMessage data structure as defined in Draft ETSI TS 103 097 V1.1.6 Clauses 7.1/2/3
parent a0668596
Loading
Loading
Loading
Loading
+18 −15
Original line number Original line Diff line number Diff line
@@ -1743,6 +1743,7 @@ module LibItsSecurity_Templates {
                    security_profile        := c_security_profileCAMs,
                    security_profile        := c_security_profileCAMs,
                    header_fields           := p_header_fields,
                    header_fields           := p_header_fields,
                    payload_fields          := p_payload_fields,
                    payload_fields          := p_payload_fields,
                    trailer_fieldsLength    := 67, // 43h = lengthof(trailer_fields) // FIXME To be enhanced
                    trailerFieldType        := p_trailer_field_type
                    trailerFieldType        := p_trailer_field_type
                } // End of template m_ToBeSignedSecuredMessage_cam
                } // End of template m_ToBeSignedSecuredMessage_cam
                
                
@@ -1811,6 +1812,7 @@ module LibItsSecurity_Templates {
                    security_profile        := c_security_profileDENMs,
                    security_profile        := c_security_profileDENMs,
                    header_fields           := p_header_fields,
                    header_fields           := p_header_fields,
                    payload_fields          := p_payload_fields,
                    payload_fields          := p_payload_fields,
                    trailer_fieldsLength    := 67, // 43h = lengthof(trailer_fields) // FIXME To be enhanced
                    trailerFieldType        := p_trailer_field_type
                    trailerFieldType        := p_trailer_field_type
                } // End of template m_ToBeSignedSecuredMessage_denm
                } // End of template m_ToBeSignedSecuredMessage_denm
                
                
@@ -1904,6 +1906,7 @@ module LibItsSecurity_Templates {
            security_profile        := p_security_profile,
            security_profile        := p_security_profile,
            header_fields           := p_header_fields,
            header_fields           := p_header_fields,
            payload_fields          := p_payload_fields,
            payload_fields          := p_payload_fields,
            trailer_fieldsLength    := 67, // 43h = lengthof(trailer_fields) // FIXME To be enhanced
            trailerFieldType        := p_trailer_field_type
            trailerFieldType        := p_trailer_field_type
        } // End of template m_toBeSignedSecuredMessage
        } // End of template m_toBeSignedSecuredMessage
        
        
+3 −3
Original line number Original line Diff line number Diff line
@@ -402,14 +402,14 @@ module LibItsSecurity_TypesAndValues {
         * @member payload_fields   The message's payload
         * @member payload_fields   The message's payload
         * @member trailer_fields   Security information after the payload
         * @member trailer_fields   Security information after the payload
         * 
         * 
         * @see Draft ETSI TS 103 097 V1.1.6 Clause 5.1 SecuredMessage
         * @see Draft ETSI TS 103 097 V1.1.6 Clause 7 Security profiles
         * @see Draft ETSI TS 103 097 V1.1.6 Table 5
         */
         */
        type record ToBeSignedSecuredMessage {
        type record ToBeSignedSecuredMessage {
            UInt8               protocol_version,
            UInt8               protocol_version,
            UInt8               security_profile,
            UInt8               security_profile,
            HeaderFields        header_fields,
            HeaderFields        header_fields,
            SecPayloads         payload_fields optional,    // Used by the codec to fill it with the secured packet in case of 'omit' value
            SecPayloads         payload_fields optional,    // Used by the codec to fill it with the secured packet in case of 'omit' value
            UInt8               trailer_fieldsLength,       // Draft ETSI TS 103 097 V1.1.6 Clauses 7.1/2/3 
            TrailerFieldType    trailerFieldType
            TrailerFieldType    trailerFieldType
        } // End of type ToBeSignedSecuredMessage
        } // End of type ToBeSignedSecuredMessage