EndOfSTF594

End of STF 594 work. Need to merger into master

Merge request reports

Loading
+59
Changes for lib/LibItsSecurity_EncdecDeclarations.ttcn: 59 added lines, 0 removed lines.
Original line number Diff line number Diff line
module LibItsSecurity_EncdecDeclarations {
    
    // LibIts
    //import from Ieee1609Dot2BaseTypes language "ASN.1:1997" all;
    import from Ieee1609Dot2 language "ASN.1:1997" all;
    //import from EtsiTs103097Module language "ASN.1:1997" all;
  
    // LibItsSecurity
    import from LibItsSecurity_TypesAndValues all;
    
    /**
     * @desc Encoding function for EtsiTs103097Certificate certificate
     * @param p The certificate to encode
     * @return The encode message in OER format
     */
    external function fx_enc_CertificateBase(in Ieee1609Dot2.CertificateBase p) return bitstring
      with {extension "prototype(convert) encode(PER)"}
    
    external function fx_dec_CertificateBase(inout bitstring b, out Ieee1609Dot2.CertificateBase p) return integer
        with {extension "prototype(sliding) decode(PER)"}
    
    /**
     * @desc Encoding function for Ieee1609Dot2.ToBeSignedCertificate
     * @param p The ToBeSign part of the certificate
     * @return The encode message in OER format
     */
    external function fx_enc_ToBeSignedCertificate(in Ieee1609Dot2.ToBeSignedCertificate p) return bitstring
        with {extension "prototype(convert) encode(PER)"}
    
    /**
     * @desc Encoding function for Ieee1609Dot2.Ieee1609Dot2Data
     * @param p The Ieee1609Dot2Data part of the certificate
     * @return The encode message in OER format
     */
    external function fx_enc_Ieee1609Dot2Data(in Ieee1609Dot2.Ieee1609Dot2Data p) return bitstring
    with {extension "prototype(convert) encode(PER)"}

    external function fx_dec_Ieee1609Dot2Data(inout bitstring p_data, out Ieee1609Dot2.Ieee1609Dot2Data p_ieee1609Dot2Data) return integer
        with {extension "prototype(sliding) decode(PER)"}
    
    external function fx_enc_Ieee1609Dot2ToBeSignedData(in Ieee1609Dot2.ToBeSignedData p) return bitstring
    with {extension "prototype(convert) encode(PER)"}

    external function fx_dec_Ieee1609Dot2ToBeSignedData(inout bitstring p_data, out Ieee1609Dot2.ToBeSignedData p_toBeSignedData) return integer
        with {extension "prototype(sliding) decode(PER)"}
    
    external function fx_enc_SspCAM (LibItsSecurity_TypesAndValues.SspCAM p_ssp) return bitstring
        with {extension "prototype(convert) encode(LibItsSecurity)"}
    
    external function fx_dec_SspCAM (inout bitstring p_data, out LibItsSecurity_TypesAndValues.SspCAM p_ssp) return integer
        with {extension "prototype(sliding) decode(LibItsSecurity)"}
    
    external function fx_enc_SspDENM (LibItsSecurity_TypesAndValues.SspDENM p_ssp) return bitstring
        with {extension "prototype(convert) encode(LibItsSecurity)"}
    
    external function fx_dec_SspDENM (inout bitstring p_data, out LibItsSecurity_TypesAndValues.SspDENM p_ssp) return integer
        with {extension "prototype(sliding) decode(LibItsSecurity)"}
    
} // End of module LibItsSecurity_EncdecDeclarations 
+97
Changes for lib/LibItsSecurity_Pics.ttcn: 97 added lines, 0 removed lines.
Original line number Diff line number Diff line
/**
 *  @author   ETSI / STF481 / STF507 / STF517
 *  @version  $Url: https://oldforge.etsi.org/svn/LibIts/tags/20170222_STF527_Final/ttcn/Security/LibItsSecurity_Pics.ttcn3 $
 *            $Id: LibItsSecurity_Pics.ttcn3 1318 2017-01-26 10:20:53Z filatov $
 *  @desc     Module containing Pics for Security Protocol
 *  @copyright   ETSI Copyright Notification
 *               No part may be reproduced except as authorized by written permission.
 *               The copyright and the foregoing restriction extend to reproduction in all media.
 *               All rights reserved.
 *
 */
module LibItsSecurity_Pics {
    
    // LibIts
    import from Ieee1609Dot2BaseTypes language "ASN.1:1997" all;
    import from Ieee1609Dot2 language "ASN.1:1997" all;
    import from EtsiTs103097Module language "ASN.1:1997" all;
        
    // LibItsSecurity
    import from LibItsSecurity_TypesAndValues all;
    
    /**
     * Does the IUT support SHA-256 digest
     */
    modulepar boolean PICS_SEC_SHA256 := true;
    
    /**
     * Does the IUT support SHA-384 digest
     */
    modulepar boolean PICS_SEC_SHA384 := false;
    
    /**
     * Does the IUT support NIST P256 algorithm
     */
    modulepar boolean PICS_SEC_NIST_P256 := true;
    
    /**
     * Does the IUT support Brainpool P256r1 algorithm
     */
    modulepar boolean PICS_SEC_BRAINPOOL_P256R1 := false;
    
    /**
     * Does the IUT support Brainpool P384r1 algorithm
     */
    modulepar boolean PICS_SEC_BRAINPOOL_P384R1 := false;
    
    /**
     * Is the IUT able to distribute AT certificates
     */
    modulepar boolean PICS_SEC_P2P_AT_DISTRIBUTION := true;
    
    /**
     * Is the IUT able to distribute AA certificates
     */
    modulepar boolean PICS_SEC_P2P_AA_DISTRIBUTION := true;
    
    /**
     * Is the IUT support certificates pushing
     */
    modulepar boolean PICS_SEC_CERTIFICATE_SELECTION := true;
    
    /**
     * Is the IUT support circular region geographical restriction
     */
    modulepar boolean PICS_SEC_CIRCULAR_REGION := true;
    
    /**
     * Does the IUT support rectangular region geographical restriction
     */
    modulepar boolean PICS_SEC_RECTANGULAR_REGION := true;
    
    /**
     * Does the IUT support polygonal region geographical restriction
     */
    modulepar boolean PICS_SEC_POLYGONAL_REGION := true;
    
    /**
     * Is the IUT support identified region geographical restriction
     */
    modulepar boolean PICS_SEC_IDENTIFIED_REGION := true;
    
    /**
     * Does the IUT support identified region/UN geographical restriction
     */
    //TODO Remove modulepar boolean PICS_SEC_UN_STATS_REGION_DICTIONARY := true;
    
    /**
     * Does the IUT support identified region/ISO31661 geographical restriction
     */
    //TODO Remove modulepar boolean PICS_ISO31661_REGION_DICTIONARY := true;
    
    /**
     * Does the IUT support ITS-AID for Generic profile?
     */
    modulepar boolean PICS_SEC_ITS_AID_OTHER := true;
    
} // End of module LibItsSecurity_Pics
+65
Changes for lib/LibItsSecurity_Pixits.ttcn: 65 added lines, 0 removed lines.
Original line number Diff line number Diff line
/**
 *  @author   ETSI / STF481 / STF507 / STF517 / STF538
 *  @version  $Url: https://oldforge.etsi.org/svn/LibIts/tags/20170222_STF527_Final/ttcn/Security/LibItsSecurity_Pixits.ttcn3 $
 *            $Id: LibItsSecurity_Pixits.ttcn3 1318 2017-01-26 10:20:53Z filatov $
 *  @desc     Module containing Pixits for Security Protocol
 *  @copyright   ETSI Copyright Notification
 *               No part may be reproduced except as authorized by written permission.
 *               The copyright and the foregoing restriction extend to reproduction in all media.
 *               All rights reserved.
 *
 */
module LibItsSecurity_Pixits {
    
    // LibCommon
    import from LibCommon_BasicTypesAndValues all;
    import from LibCommon_DataStrings all;
    
    // LibIts
    import from Ieee1609Dot2BaseTypes language "ASN.1:1997" all;
    import from Ieee1609Dot2 language "ASN.1:1997" all;
    import from EtsiTs103097Module language "ASN.1:1997" all;
    
    /**
     * @desc Root path to access certificate stored in files, identified by certficate ID
     */
    modulepar charstring PX_CERTIFICATE_POOL_PATH := "data/v3/certificates";
    
    /**
     * @desc Configuration sub-directory to access certificate stored in files
     */
    modulepar charstring PX_IUT_SEC_CONFIG_NAME := "";
    
    /**
     * @desc The certficate the IUT should use. Default: CERT_IUT_A_AT
     * @remark If the IUT cannot use the test certificates, set this PIXIT to CERT_NONE
     */
    modulepar charstring PX_IUT_DEFAULT_CERTIFICATE := "CERT_IUT_A_AT";
    
    /**
     * @desc The certficate the IUT should use. Default: CERT_TS_B_AT
     * @remark Possible values: CERT_TS_C_AT, CERT_TS_D_AT, or CERT_TS_E_AT
     */
    modulepar charstring PX_AT_CERTIFICATE := "CERT_TS_B_AT";
    
    /**
     * @desc ITS-AID value for other profile. Default: 38
     */
    modulepar Psid PX_OTHER_ITS_AID := 141; // Assign to GN-MGMT, Other than CA, DEN, MAP, SPAT, IVI, SRE, SSE & GN-MGMT: 38
    
    /**
     * @desc Invalid protocol version. Default: 3
     */
    modulepar UInt8 PX_WRONG_PROTOCOL_VERSION := 4;
    
    /**
     * @desc Invalid WGS longitude
     */
    modulepar SecLongitude PX_WGSLONGITUDE := 0;
    
    /**
     * @desc Invalid WGS latitude. Default: 1
     */
    modulepar SecLatitude PX_WGSLATITUDE := 0;
    
} // End of module LibItsSecurity_Pixits
+2101

File added.

Preview size limit exceeded, changes collapsed.

+314

File added.

Preview size limit exceeded, changes collapsed.

Loading
Loading