ItsSecurity_Pics.ttcn 2.71 KB
Newer Older
garciay's avatar
garciay committed
/**
 *  @author   ETSI / STF481 / STF507 / STF517 / STF538 / STF545
 *  @version  $Url: https://oldforge.etsi.org/svn/ITS/tags/20170222_STF527_Final/ttcn/AtsSecurity/ItsSecurity_Pics.ttcn $
 *            $Id: ItsSecurity_Pics.ttcn 2655 2017-01-26 10:46:08Z filatov $
 *  @desc     Module containing Pics for Security ATS
 *  @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 ItsSecurity_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;
    
    // TODO To be removed
    type record certificates_foi {
        charstring certificate_id,
        HashAlgorithm hashAlgorithm,
        HashedId8 issuer,
        HashedId8 hashedId8,
        GeographicRegion region optional
    } // End of type certificates_foi
    type record of certificates_foi certificates_fois;
    
    modulepar certificates_fois PICS_CERTFICATES_FOI := {
        { cc_iutCert_A, sha256, '39CF4DF85C18EBA5'O, 'EFEB473043DD2B88'O, omit }, // CERT_IUT_A_AT
        { cc_iutCert_B, sha256, '39CF4DF85C18EBA5'O, 'E9DAF8626F52D687'O, { circularRegion := { center := {436169490, 70533080}, radius := 5000 } } }, // CERT_IUT_B_AT
        { cc_iutCert_C, sha256, '39CF4DF85C18EBA5'O, '46C778C826B25328'O, { rectangularRegion := { { northWest := { latitude := 436618657, longitude := 70083912 }, southEast := { latitude := 435720322, longitude := 70982247 } } } } }, // CERT_IUT_C_AT

        { cc_taCert_A1, sha256, '39CF4DF85C18EBA5'O, '01063FEF92C015BB'O, omit }, // CERT_IUT_A1_AT
        { cc_taCert_A2, sha256, '39CF4DF85C18EBA5'O, '9D22335CEA81F889'O, omit }, // CERT_IUT_A2_AT
        { cc_taCert_A3, sha256, '39CF4DF85C18EBA5'O, '50B90BA7C0C78B36'O, omit }, // CERT_IUT_A3_AT

        { cc_taCert_C1, sha256, 'EC0EFC5EE781AE35'O, '0E54BA7D4E5C3A94'O, omit }, // CERT_IUT_C1_AT
        { cc_taCert_CA1, sha256, 'EC0EFC5EE781AE35'O, '845086F7305687C3'O, omit }, // CERT_IUT_CA1_AT
        { cc_taCert_CA2, sha256, '19289FF3AD70C0D1'O, '7F78196AC6807225'O, omit }, // CERT_IUT_CA2_AT
        { cc_taCert_CA3, sha256, 'F6A320443DEF49C9'O, '1D861E271611A7EA'O, omit } // CERT_IUT_CA3_AT
        
    }
    
    /**
     * @desc Certificate identifier to be used for X_CERTFICATE variant
     */
    modulepar integer PICS_CERTFICATES_VAR := 0;
    
} // End of module ItsSecurity_Pics