Commit 93b48db4 authored by garciay's avatar garciay
Browse files

Add PICS/PIXIT for ITS-AID for other profiles

parent 0326a548
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@
 */
module LibItsSecurity_Pixits {
    
    // LibItsSecurity
    import from LibItsSecurity_TypesAndValues all;
    
    /**
     * @desc Root path to access certificate stored in files, identified by certficate ID
     */
@@ -23,4 +26,9 @@ module LibItsSecurity_Pixits {
     */
    modulepar charstring PX_DEFAULT_IUT_HASHEDID8 := "CERT_IUT_A";
    
    /**
     * @desc ITS-AID value for other profile. Default: 38
     */
    modulepar IntX PX_OTHER_ITS_AID := 38; 
    
} // End of module LibItsSecurity_Pixits
 No newline at end of file
+31 −5
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ module LibItsSecurity_Templates {
    
    // LibItsSecurity
    import from LibItsSecurity_TypesAndValues all;
    import from LibItsSecurity_Pixits all;
    
    /**
     * @desc Constants declaration
@@ -45,6 +46,12 @@ module LibItsSecurity_Templates {
         */
        const IntX c_its_aid_DENM := 37;
        
        /**
         * @desc Its AID for Other
         * @see Draft ETSI TS 103 097 V1.1.14 Clause 7.3 Security profile for DENMs
         */
        const IntX c_its_aid_Other := PX_OTHER_ITS_AID;
        
        /**
         * @desc Minimal value of Longitude
         */
@@ -961,10 +968,7 @@ module LibItsSecurity_Templates {
            ) := {
                protocol_version    := c_protocol_version, 
                header_fields       := superset(
                    complement(
                        mw_header_field_its_aid_CAM,
                        mw_header_field_its_aid_DENM
                    ),
                    mw_header_field_its_aid_Other,
                    p_header
                ),
                payload_field       := p_payload,
@@ -1187,6 +1191,17 @@ module LibItsSecurity_Templates {
                    }
                } // End of template m_header_field_its_aid_DENM
                
                /**
                 * @desc Send template for HeaderField with CAM ItsAid identifier
                 * @see Draft ETSI TS 103 097 V1.1.14 Clause 5.4    HeaderField
                 */
                template (value) HeaderField m_header_field_its_aid_Other := {
                    type_       := e_its_aid,
                    headerField := {
                        its_aid := c_its_aid_Other
                    }
                } // End of template m_header_field_its_aid_Other
                
                /**
                 * @desc Send template for HeaderField with signer information
                 * @see Draft ETSI TS 103 097 V1.1.14 Clause 5.4    HeaderField
@@ -1443,7 +1458,7 @@ module LibItsSecurity_Templates {
                } // End of template mw_header_field_its_aid_CAM
                
                /**
                 * @desc Receive template for HeaderField with CAM ItsAid identifier
                 * @desc Receive template for HeaderField with DENM ItsAid identifier
                 * @see Draft ETSI TS 103 097 V1.1.14 Clause 5.4    HeaderField
                 */
                template (value) HeaderField mw_header_field_its_aid_DENM := {
@@ -1453,6 +1468,17 @@ module LibItsSecurity_Templates {
                    }
                } // End of template mw_header_field_its_aid_DENM
                
                /**
                 * @desc Receive template for HeaderField with Other ItsAid identifier
                 * @see Draft ETSI TS 103 097 V1.1.14 Clause 5.4    HeaderField
                 */
                template (value) HeaderField mw_header_field_its_aid_Other := {
                    type_       := e_its_aid,
                    headerField := {
                        its_aid := c_its_aid_Other
                    }
                } // End of template mw_header_field_its_aid_Other
                
            } // End of group headerFieldsRecv
            
        } // End of group headerFields