LibItsSecurity_Pixits.ttcn 2.75 KB
Newer Older
garciay's avatar
garciay committed
/**
 *  @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 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: 2
     */
    modulepar UInt8 PX_WRONG_PROTOCOL_VERSION := 2;
    
    /**
     * @desc Invalid WGS longitude
     */
    modulepar SecLongitude PX_WGSLONGITUDE := 0;
    
    /**
     * @desc Invalid WGS latitude. Default: 1
     */
    modulepar SecLatitude PX_WGSLATITUDE := 0;
    
    /**
     * @desc Invalid digest. Default: 1
     */
    modulepar HashedId8 PX_OTHER_CERT_DIGEST := '0000000000000000'O;
    
    /**
     * @desc AES-128-CCM nonce public key
     */
    modulepar Oct12 PX_ENCRYPTIONPARAMETERS_AES_128_CCM_NONCE := 'C0FFEEDECAC0FFEEDECA0000'O;

    modulepar CountryOnly PX_GENERATED_CERTIFICATE_REGION_COUNTRY_1 := 250;
    
    modulepar CountryOnly PX_GENERATED_CERTIFICATE_REGION_COUNTRY_2 := 380;

    modulepar Int16 PX_GENERATED_CERTIFICATE_DURATION := 120;

    modulepar SubjectAssurance PX_GENERATED_CERTIFICATE_SUBJECT_ASSURENCE_LEVEL := '00'O;

} // End of module LibItsSecurity_Pixits