/** * @author ETSI / STF481 * @version $URL$ * $Id$ * @desc Module containing Pixits for Security Protocol * */ module LibItsSecurity_Pixits { // LibItsSecurity import from LibItsSecurity_TypesAndValues all; import from LibItsSecurity_Templates all; /** * @desc Index on the certificate to be used. Default: configuration #0 */ modulepar integer PX_CERTIFICATE_CONFIG_IDX := 0; /** * @desc CA certificates to be used by the Test Adapter */ modulepar CertificateChain PX_CA_CERTIFICATES := { { // Config #0 version := 2, signer_infos := { { type_ := e_self, signerInfo := omit } }, subject_info := m_subject_info_root_ca( '455453495f506c7567746573745f526f6f74'O // ETSI_Plugtest_Root ), subject_attributes := { m_subject_attribute_verification_key( m_publicKey_eccPoint( m_eccPointecdsa_nistp256_with_sha256_uncompressed( '681bd7f8b4f4483763130b659099a64a6b5d734ea729f966e4436bf8da128c55'O, '9596f82dcf60625bb2ef113cf85f1a7cc4adda09e239a869e2dd6b974d442378'O ) ) ), m_subject_attribute_encryption_key( m_publicKey_aesccm( m_aesccm( m_eccPointecdsa_nistp256_with_sha256_uncompressed( 'b03573a37b86c6cf57518ccf20e1d6a2e7ddaa9cbe2c98953b838a9689fc13f4'O, 'dd2b847c6481a23c558e96caaf69d8bead7b518909acecfdb6e36c1bc824cfbd'O ) ) ) ), m_subject_attribute_assurance_level( m_subjectAssurance( '001'B, '00'B ) ), m_subject_attribute_its_aid_list( { 16512, 16513 } ) }, validity_restrictions := { m_validity_restriction_time_start_and_end( 1408802285, 1513691885 ), m_validity_restriction_region( m_geographicRegion_polygonial( { { latitude := 498716540, longitude := 86382080 }, { latitude := 498685550, longitude := 86411050 }, { latitude := 492040400, longitude := 86475600 } } ) ) }, signature_ := m_signature( m_ecdsaSignature( m_eccPointecdsa_nistp256_with_sha256_x_coordinate_only( 'b668e238a4f243331cc5caa87069b64c35389a23817cc07219556f957648e251'O ), 'bc5f2ecf8bba774c3c35b7aab80280e972c1530401ecda8794e387f579a705e8'O ) ) } // End of config #0 // TODO Add additional configurations }; /** * @desc AA certificates to be used by the Test Adapter */ modulepar CertificateChain PX_AA_CERTIFICATES := { { // Config #0 version := 2, signer_infos := { { type_ := e_certificate_digest_with_ecdsap256, signerInfo := { digest := 'e33752cefbf9a7c6'O } // End of field signerInfo } }, subject_info := m_subject_info_authorization_authority( '455453495F506C7567746573745F4141'O // ETSI_Plugtest_Root ), subject_attributes := { m_subject_attribute_verification_key( m_publicKey_eccPoint( m_eccPointecdsa_nistp256_with_sha256_uncompressed( 'c1ec9c8107f820f54345f4b996a74f984d0cf0b145e894417fedb973e6b23c83'O, 'b5bf92da1bbb0704067a8350ee478492d4433c81ea522c713d14685d81c70ea6'O ) ) ), m_subject_attribute_encryption_key( m_publicKey_aesccm( m_aesccm( m_eccPointecdsa_nistp256_with_sha256_uncompressed( '9b550869c67caf205372018b7789a44153fe7ac7685a89b0f4aa2e9dab30ad18'O, '9b550869c67caf205372018b7789a44153fe7ac7685a89b0f4aa2e9dab30ad18'O ) ) ) ), m_subject_attribute_assurance_level( m_subjectAssurance( '001'B, '00'B ) ), m_subject_attribute_its_aid_list( { 16512, 16513 } ) }, validity_restrictions := { m_validity_restriction_time_start_and_end( 1408802285, 1513691885 ), m_validity_restriction_region( m_geographicRegion_polygonial( { { latitude := 498716540, longitude := 86382080 }, { latitude := 498685550, longitude := 86411050 }, { latitude := 492040400, longitude := 86475600 } } ) ) }, signature_ := m_signature( m_ecdsaSignature( m_eccPointecdsa_nistp256_with_sha256_x_coordinate_only( '46aa93c900e529b40b9e38af110f89f625ebae187bf4bdc908382eaa019eabef'O ), 'e2ccb867b96b5f1c9151325297937078020955cf36c435102fa4a04e1e68ab4c'O ) ) } // End of config #0 // TODO Add additional configurations }; /** * @desc AT certificates to be used by the Test Adapter */ modulepar CertificateChain PX_AT_CERTIFICATES := { { // Config #0 version := 2, signer_infos := { { type_ := e_certificate_digest_with_ecdsap256, signerInfo := { digest := 'd7fbfc40b39af7e0'O } // End of field signerInfo } }, subject_info := m_subject_info_authorization_ticket, subject_attributes := { m_subject_attribute_verification_key( m_publicKey_eccPoint( m_eccPointecdsa_nistp256_with_sha256_uncompressed( 'b9e9c238c335ef8d2fb484e196b0fc36bb90f2aef1f7ce7b28401341ed122f14'O, 'a759ffdfd44d278df2877ac04f079190649e7f495d923c30e549452f33ff5832'O ) ) ), m_subject_attribute_encryption_key( m_publicKey_aesccm( m_aesccm( m_eccPointecdsa_nistp256_with_sha256_uncompressed( '007504649693dcc4f25ff7650a4d90f4151f9939e4f0531e81b57863e7536ac9'O, '00e4b9981e78da2775e50840e78edc810c3296c42ea26528b1080e848b539dd7'O ) ) ) ), m_subject_attribute_assurance_level( m_subjectAssurance( '001'B, '00'B ) ), m_subject_attribute_its_aid_list( { 16512, 16513 } ) }, validity_restrictions := { m_validity_restriction_time_start_and_end( 1408802285, 1513691885 ) }, signature_ := m_signature( m_ecdsaSignature( m_eccPointecdsa_nistp256_with_sha256_x_coordinate_only( 'a108820c22e03a9f0e9e2b2bebd90692994e9d7e787d2b78cc814926107e841a'O ), '9571f152dbc23065226dc6e955af599b52d93d7e2b63d651d4188dee0a67a8cf'O ) ) } // End of config #0 // TODO Add additional configurations }; /** * @desc 3D locations */ modulepar ThreeDLocations PX_TRHEED_LOCATIONS := { { // Config #0 latitude := 12345, longitude := 12345, elevation := '020E'O } // End of config #0 // TODO Add additional configurations }; /** * @desc Desscribes the Test Adapter security configurations */ modulepar TaConfigs PX_TA_CONFIGS := { { // Config #0 signingPrivateKey := '6240f8eee3ecc40549538a46805da487806a3d40ab31380756aef687442b66e8'O, encryptPrivateKey := 'f14c6fa6fdde070e45922e1c37b44771e798b890e81b2fced893803af6639750'O, caCertificate := PX_CA_CERTIFICATES[0], aaCertificate := PX_AA_CERTIFICATES[0], atCertificate := PX_AT_CERTIFICATES[0], location := PX_TRHEED_LOCATIONS[0] } // End of config #0 // TODO Add additional configurations }; // End of modulepar PX_TA_CONFIGS } // End of module LibItsSecurity_Pixits