Commit 63d369f5 authored by YannGarcia's avatar YannGarcia
Browse files

Validate ITS-S enrolment/authorization

parent d42e40e7
Loading
Loading
Loading
Loading
+421 −147

File changed.

Preview size limit exceeded, changes collapsed.

+4 −19
Changes for lib/LibItsPki_Pixits.ttcn: 4 added lines, 19 removed lines.
Original line number Diff line number Diff line
@@ -16,19 +16,9 @@ module LibItsPki_Pixits {
  modulepar boolean PX_INCLUDE_ENCRYPTION_KEYS := true;
  
  /**
   * @desc Contains the private key for the EC certificate, used in case of re-enrolment
   * @desc Indicate which canonical key shall be used (Nist-P256, BP-256 or BP-384)
   */
  modulepar Oct32 PX_EC_PRIVATE_KEY := int2oct(0, 32);
  
  /**
   * @desc Contains the hashed id8 of the EC certificate, used in case of re-enrolment
   */
  modulepar HashedId8 PX_EC_HASHED_ID8 := int2oct(0, 8);

  /**
   * @desc Contains the hash of the EC certificate, used in case of re-enrolment
   */
  modulepar Oct32 PX_EC_HASH := int2oct(0, 32);
  modulepar SecurityAlg PX_VE_ALG := e_nist_p256;
  
  /**
   * @desc Indicate which encryption algorithem to be used for Enrolment Credencial
@@ -47,18 +37,13 @@ module LibItsPki_Pixits {
   */
  modulepar SecurityAlg PX_EC_ALG_FOR_EC_SIGN := e_nist_p256;
  
  /**
   * @desc Indicate which verification algorithem to be used
   */
  modulepar SecurityAlg PX_VE_ALG := e_nist_p256;
  
  modulepar Int16 PX_GENERATED_CERTIFICATE_DURATION := 120;

  modulepar SubjectAssurance PX_GENERATED_CERTIFICATE_SUBJECT_ASSURENCE_LEVEL := '00'O;

  modulepar CountryOnly PX_GENERATED_CERTIFICATE_REGION_COUNTRY_1 := 250;
  modulepar CountryOnly PX_GENERATED_CERTIFICATE_REGION_COUNTRY_1 := 250; // French

  modulepar CountryOnly PX_GENERATED_CERTIFICATE_REGION_COUNTRY_2 := 380;
  modulepar CountryOnly PX_GENERATED_CERTIFICATE_REGION_COUNTRY_2 := 267; // Germany

  modulepar octetstring PX_INNER_EC_CERTFICATE_BITMAP_SSP_SCR := '01C0'O;

+4 −0
Changes for lib/LibItsPki_TypesAndValues.ttcn: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -113,6 +113,10 @@ module LibItsPki_TypesAndValues {
      charstring tlm_ctl_uri
    } // End of type TriggerRequestForRcaCtl

    type record UtPkiTriggerInd {
      integer state
    } // End of type UtPkiTriggerInd

  } with {
    encode "UpperTester"
    variant ""
+69 −45

File changed.

Preview size limit exceeded, changes collapsed.

+3 −2
Changes for lib_system/LibItsPki_TestSystem.ttcn: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ module LibItsPki_TestSystem {
     */
    type port UpperTesterPkiPort message {
      out UtPkiInitialize, UtPkiTrigger;
      in UtPkiResults;
      in UtPkiResults, UtPkiTriggerInd;
    } // End of UpperTesterPort
    
    type port InfoPort message {
@@ -109,7 +109,8 @@ module LibItsPki_TestSystem {
      var EcCompressedModes vc_ec_compressed_modes;
      var EcHashedId8 vc_ec_hashed_id8;
      var EcCertificates vc_ec_certificates;
      var integer vc_ec_keys_counter;
      var integer vc_ec_keys_counter := 0;
      var integer vc_ec_counter := 0;
    } // End of component ItsPkiHttp
    
    /**
Loading