EndOfSTF594

End of STF 594 work. Need to merge with master

Merge request reports

Loading
+144
Changes for lib/LibItsPki_EncdecDeclarations.ttcn: 144 added lines, 0 removed lines.
Original line number Diff line number Diff line
module LibItsPki_EncdecDeclarations {
    
  // LibIts
  import from Ieee1609Dot2BaseTypes language "ASN.1:1997" all;
  import from EtsiTs102941BaseTypes language "ASN.1:1997" all;
  import from EtsiTs102941TypesEnrolment language "ASN.1:1997" all;
  import from EtsiTs102941TypesAuthorization language "ASN.1:1997" all;
  import from EtsiTs102941TypesAuthorizationValidation language "ASN.1:1997" all;
  import from EtsiTs102941MessagesCa language "ASN.1:1997" all;
  import from EtsiTs103097Module language "ASN.1:1997" all;
  import from EtsiTs102941TrustLists language "ASN.1:1997" all;

  // LibItsPki
  import from LibItsSecurity_TypesAndValues all;

  external function fx_enc_EtsiTs102941Data(in EtsiTs102941MessagesCa.EtsiTs102941Data p_etsi_ts_102941_data) return bitstring
  with {extension "prototype(convert) encode(PER)"}

  external function fx_dec_EtsiTs102941Data(inout bitstring b, out EtsiTs102941MessagesCa.EtsiTs102941Data p_etsi_ts_102941_data)return integer
  with {extension "prototype(sliding) decode(PER)"}

  external function fx_enc_EtsiTs102941DataContent(in EtsiTs102941MessagesCa.EtsiTs102941DataContent p_etsi_ts_102941_data) return bitstring
  with {extension "prototype(convert) encode(PER)"}

  external function fx_dec_EtsiTs102941DataContent(inout bitstring b, out EtsiTs102941MessagesCa.EtsiTs102941DataContent p_etsi_ts_102941_data)return integer
  with {extension "prototype(sliding) decode(PER)"}
  
  /**
   * @desc Encoding function for EtsiTs102941TypesEnrolment InnerEcRequest
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_InnerEcRequest(in EtsiTs102941TypesEnrolment.InnerEcRequest p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_InnerEcRequest(inout bitstring b, out EtsiTs102941TypesEnrolment.InnerEcRequest p) return integer
  with {extension "prototype(sliding) decode(PER)"}
    
  /**
   * @desc Encoding function for EtsiTs102941TypesEnrolment InnerEcResponse
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_InnerEcResponse(in EtsiTs102941TypesEnrolment.InnerEcResponse p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_InnerEcResponse(inout bitstring b, out EtsiTs102941TypesEnrolment.InnerEcResponse p) return integer
  with {extension "prototype(sliding) decode(PER)"}
    
  /**
   * @desc Encoding function for EtsiTs102941TypesAuthorization InnerAtRequest
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_InnerAtRequest(in EtsiTs102941TypesAuthorization.InnerAtRequest p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_InnerAtRequest(inout bitstring b, out EtsiTs102941TypesAuthorization.InnerAtRequest p) return integer
  with {extension "prototype(sliding) decode(PER)"}
    
  /**
   * @desc Encoding function for EtsiTs102941TypesAuthorization InnerAtResponse
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_InnerAtResponse(in EtsiTs102941TypesAuthorization.InnerAtResponse p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_InnerAtResponse(inout bitstring b, out EtsiTs102941TypesAuthorization.InnerAtResponse p) return integer
  with {extension "prototype(sliding) decode(PER)"}
    
  /**
   * @desc Encoding function for EtsiTs102941TypesAuthorization SharedAtRequest
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_SharedAtRequest(in EtsiTs102941TypesAuthorization.SharedAtRequest p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_SharedAtRequest(inout bitstring b, out EtsiTs102941TypesAuthorization.SharedAtRequest p) return integer
  with {extension "prototype(sliding) decode(PER)"}
    
  /**
   * @desc Encoding function for EtsiTs102941TypesAuthorizationValidation AuthorizationValidationRequest
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_AuthorizationValidationRequest(in EtsiTs102941TypesAuthorizationValidation.AuthorizationValidationRequest p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_AuthorizationValidationRequest(inout bitstring b, out EtsiTs102941TypesAuthorizationValidation.AuthorizationValidationRequest p) return integer
  with {extension "prototype(sliding) decode(PER)"}
    
  /**
   * @desc Encoding function for EtsiTs102941TypesAuthorizationValidation AuthorizationValidationResponse
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_AuthorizationValidationResponse(in EtsiTs102941TypesAuthorizationValidation.AuthorizationValidationResponse p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_AuthorizationValidationResponse(inout bitstring b, out EtsiTs102941TypesAuthorizationValidation.AuthorizationValidationResponse p) return integer
  with {extension "prototype(sliding) decode(PER)"}
    
  /**
   * @desc Encoding function for EtsiTs102941BaseTypes PublicKeys
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_PublicKeys(in EtsiTs102941BaseTypes.PublicKeys p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_PublicKeys(inout bitstring b, out EtsiTs102941BaseTypes.PublicKeys p) return integer
  with {extension "prototype(sliding) decode(PER)"}
    
  /**
   * @desc Encoding function for Ieee1609Dot2BaseTypes PublicVerificationKey
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_PublicVerificationKey(in Ieee1609Dot2BaseTypes.PublicVerificationKey p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_PublicVerificationKey(inout bitstring b, out Ieee1609Dot2BaseTypes.PublicVerificationKey p) return integer
  with {extension "prototype(sliding) decode(PER)"}
    
  /**
   * @desc Encoding function for Ieee1609Dot2BaseTypes PublicEncryptionKey
   * @param p The certificate to encode
   * @return The encode message in OER format
   */
  external function fx_enc_PublicEncryptionKey(in Ieee1609Dot2BaseTypes.PublicEncryptionKey p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_PublicEncryptionKey(inout bitstring b, out Ieee1609Dot2BaseTypes.PublicEncryptionKey p) return integer
  with {extension "prototype(sliding) decode(PER)"}
  
  external function fx_enc_CtlFormat(in EtsiTs102941TrustLists.CtlFormat p) return bitstring
  with {extension "prototype(convert) encode(PER)"}
    
  external function fx_dec_CtlFormat(inout bitstring b, out EtsiTs102941TrustLists.CtlFormat p) return integer
  with {extension "prototype(sliding) decode(PER)"}
  
} // End of module LibItsPki_EncdecDeclarations 
+261
Changes for lib/LibItsPki_Pics.ttcn: 261 added lines, 0 removed lines.
Original line number Diff line number Diff line
module LibItsPki_Pics {
  
  /**
   * @desc Does the IUT act as ITS-S device?
   */
  modulepar boolean PICS_IUT_ITS_S_ROLE := false;
  
  /**
   * @desc Does the IUT act as EA device?
   */
  modulepar boolean PICS_IUT_EA_ROLE := true;
  
  /**
   * @desc Does the IUT act as AA device?
   */
  modulepar boolean PICS_IUT_AA_ROLE := true;
  
  /**
   * @desc Does the IUT act as CA device?
   */
  modulepar boolean PICS_IUT_CA_ROLE := true;
  
  /**
   * @desc Does the IUT act as TLM device?
   */
  modulepar boolean PICS_IUT_TLM_ROLE := true;
  
  /**
   * @desc Does the IUT support enrolment?
   */
  modulepar boolean PICS_SECPKI_ENROLMENT := true;
  
  /**
   * @desc Does the IUT support autorization?
   */
  modulepar boolean PICS_SECPKI_AUTHORIZATION := true;
  
  /**
   * @desc Is a re-enrolment request?
   */
  modulepar boolean PICS_SECPKI_REENROLMENT := false;

  /**
   * @desc ?
   */
  modulepar boolean PICS_SECPKI_CRL := false;
  
  /**
   * @desc Do the Authorization Request use SignedWithPop mechanism?
   */
  modulepar boolean PICS_PKI_AUTH_POP := true;

  /**
   * @desc Certificate used by the IUT acting as ITS-S
   */
  modulepar charstring PICS_IUT_CERTIFICATE_ID := "CERT_IUT_A_AT";

  /**
   * @desc Certificate used by the IUT acting as EA
   */
  modulepar charstring PICS_IUT_EA_CERTIFICATE_ID := "CERT_IUT_A_EA";

  /**
   * @desc Certificate used by the IUT acting as AA
   */
  modulepar charstring PICS_IUT_AA_CERTIFICATE_ID := "CERT_IUT_A_AA";

  /**
   * @desc Certificate used by the IUT acting as AA
   */
  modulepar charstring PICS_IUT_CA_CERTIFICATE_ID := "CERT_IUT_A_RCA";

  /**
   * @desc Certificate used by the Test System acting as ITS-S
   */
  modulepar charstring PICS_TS_CERTIFICATE_ID := "CERT_TS_A_AT";
  
  /**
   * @desc Certificate used by the Test System acting as EA
   */
  modulepar charstring PICS_TS_EA_CERTIFICATE_ID := "CERT_TS_A_EA";
  
  /**
   * @desc Certificate used by the Test System acting as AA
   */
  modulepar charstring PICS_TS_AA_CERTIFICATE_ID := "CERT_TS_A_AA";
  
  /**
   * @desc Certificate used by the Test System acting as EA
   */
  modulepar charstring PICS_TS_CA_CERTIFICATE_ID := "CERT_TS_RCA_A";
  
  /**
   * @desc Set to true if different end points are used for EC and AT
   */
  modulepar boolean PICS_MULTIPLE_END_POINT := false;

  /**
   * @desc End point for the enrolment
   */
  modulepar charstring PICS_HEADER_HOST_EC := "www.its.ec.org";
  
  /**
   * @desc End point for the authorization validation
   */
  modulepar charstring PICS_HEADER_HOST_ATV := "www.its.atv.org";
  
  /**
   * @desc End point for the authorization
   */
  modulepar charstring PICS_HEADER_HOST_AT := "www.its.at.org";
  
  /**
   * @desc End point for the CA
   */
  modulepar charstring PICS_HEADER_HOST_CA := "www.its.ca.org";
  
  /**
   * @desc End point for the TLM
   */
  modulepar charstring PICS_HEADER_HOST_TLM := "www.its.tlm.org";

  /**
   * @desc 
   */
  modulepar charstring PICS_HTTP_POST_URI_DC := "www.its.ec.org";
  
  /**
   * @desc Certificate used by the Test System
   */
  modulepar charstring PICS_HTTP_POST_URI := "/its/inner_ec_request";
  
  /**
   * @desc ITS-S with privacy
   */
  modulepar boolean PICS_ITS_S_WITH_PRIVACY := true;
  
  /**
   * @desc Set to true if the PKI configuration authorize to configure an external EA entity
   */
  
  modulepar boolean PICS_SIMULATE_EA_ENTITY := false;
  
  /**
   * @desc Set to true if the PKI configuration authorize to configure an external AA entity
   */
  modulepar boolean PICS_SIMULATE_AA_ENTITY := false;
  
  /**
   * @desc HTTP POST URI for InnerECRequest
   */
  modulepar charstring PICS_HTTP_POST_URI_EC := "/enrolment";
  
  /**
   * @desc HTTP POST URI for InnerATRequest
   */
  modulepar charstring PICS_HTTP_POST_URI_AT := "/authorize";
  
  /**
   * @desc HTTP POST URI for authorization validation
   */
  modulepar charstring PICS_HTTP_POST_URI_ATV := "/authorize_validate";
  
  /**
   * @desc HTTP GET URI for Certificate Trusted List
   */
  modulepar charstring PICS_HTTP_GET_URI_CA := "/dc/getctl";

  /**
   * @desc HTTP GET URI for Certificate Trusted List
   */
  modulepar charstring PICS_HTTP_GET_URI_CTL := "/dc/getctl";

  /**
   * @desc HTTP GET URI for Certificate Trusted List
   */
  modulepar charstring PICS_HTTP_GET_URI_CRL := "/dc/getcrl";
  
  /**
   * @desc HTTP GET URI for Certificate Trusted List
   */
  modulepar charstring PICS_HTTP_GET_URI_ECTL := "/tlm/getectl";
  
  /**
   * @desc Factory private key for verification Nist P256
   */
  modulepar octetstring PICS_ITS_S_SIGN_NITSP256_PRIVATE_KEY := '5C25F97607DFC62972A147FAD8B7A7C939569F0F95ECD4C641724A68B51836E5'O;
  
  /**
   * @desc Factory compressed public key for verification Nist P256
   */
  modulepar octetstring PICS_ITS_S_SIGN_NISTP256_PUBLIC_KEY := '020144E5174B0AFDA86BDB8B643B68D40030F5BDB9A9F090C64852CC3C20C9D5AD'O;
  
  /**
   * @desc Factory private key for encryption Nist P256
   */
  modulepar octetstring PICS_ITS_S_ENC_NITSP256_PRIVATE_KEY := 'EDEBEADCAA9514CD4B30256126FB7DF958B911C6EB58CCF702983C3DCD3DECBD'O;
  
  /**
   * @desc Factory compressed public key for encryption Nist P256
   */
  modulepar octetstring PICS_ITS_S_ENC_NISTP256_PUBLIC_KEY := '023A4ADDCDD5EE66DAB2116B0C3AB47CCEDAE92CD9ACE98A84B10EB63A9DCA798C'O;
  
  /**
   * @desc Factory private key for encryption Brainpool P256 r1
   */
  modulepar octetstring PICS_ITS_S_ENC_BRAINPOOLP256r1_PRIVATE_KEY := '9F155D40B6C920BA45D8027093C8ADADAF3AA6F9F71F0CC0F8279FF0146A8A48'O;
  
  /**
   * @desc Factory compressed public key for encryption Brainpool P256 r1
   */
  modulepar octetstring PICS_ITS_S_ENC_BRAINPOOLP256r1_PUBLIC_KEY := '038602F468BD334EA4D2BA416295E204D58BD1F42C85FB9BE57237C74544F6A69A'O;
  
  /**
   * @desc Factory private key for verification Brainpool P256 r1
   */
  modulepar octetstring PICS_ITS_S_SIGN_BRAINPOOLP256r1_PRIVATE_KEY := '2CCBC88C6AD0FBB78AE50DA63366E64445F069369CED4605485442F524A0791E'O;
  
  /**
   * @desc Factory compressed public key for verification Brainpool P256 r1
   */
  modulepar octetstring PICS_ITS_S_SIGN_BRAINPOOLP256r1_PUBLIC_KEY := '02A7A21F8FEE8DF454B7AF80A7C78CBC506C16F491C72BDC54F0CE98F20C15C59B'O;
  
  /**
   * @desc Factory private key for encryption Brainpool P384 r1
   */
  modulepar octetstring PICS_ITS_S_ENC_BRAINPOOLP384r1_PRIVATE_KEY := '6B4B4392511B252C904801466F5DA0A7F28E038E6656800CBB0CDCB3D32F862CA4D59CBDC1A19E98E9191582AF1DB3D7'O;
  
  /**
   * @desc Factory private key for verification Brainpool P384 r1
   */
  modulepar octetstring PICS_ITS_S_SIGN_BRAINPOOLP384r1_PRIVATE_KEY := '0F94E957F915B39E545FE845A8B4681D52F9D144353FFE36879F3DC9AFDE4001EDE55D5234EB977425E44D95BD6D3328'O;
  
  /**
   * @desc Factory compressed public key for verification Brainpool P384 r1
   */
  modulepar octetstring PICS_ITS_S_SIGN_BRAINPOOLP384r1_PUBLIC_KEY := '0210E2B13DCC736F22A1E9C6E156177BD0CB106D34897EF8D596CF3A7AC4034003AD2BB3FA4F65C723F665BEF089858C4F'O;
  
  /**
   * @desc Canonical ITSS-S identifier
   */
  modulepar octetstring PICS_ITS_S_CANONICAL_ID := '455453492D4954532D303031'O;

  /**
   * @desc Invalid Canonical ITSS-S identifier
   */
  modulepar octetstring PICS_INVALID_ITS_S_CANONICAL_ID := '455453492D4954532D30303145454545'O;
  
  /**
   * @desc Set to true if the IUT support CertificateId shall be set to the choice name
   * @see ETSI TS 103 097 Clause 7.2.2 Enrolment credential 
   */
  modulepar boolean PICS_EC_SUBJECT_ATTRIBUT_ID := false;

  modulepar boolean PICS_SEC_IMPLICIT_CERTIFICATES := false;

  modulepar boolean PICS_SEC_EXPLICIT_CERTIFICATES := true;

  modulepar boolean PICS_UC_SEC_05_2 := true;

} // End of module LibItsPki_Pics
+81
Changes for lib/LibItsPki_Pixits.ttcn: 81 added lines, 0 removed lines.
Original line number Diff line number Diff line
module LibItsPki_Pixits {
  
  // LibCommon
  import from LibCommon_BasicTypesAndValues all;
  import from LibCommon_DataStrings all;
  
  // LibIts
  import from Ieee1609Dot2BaseTypes language "ASN.1:1997" all;

  // LibItsPki
  import from LibItsPki_TypesAndValues all;
  
  /**
   * @desc Do the encryption keys be included in Authorization Request?
   */
  modulepar boolean PX_INCLUDE_ENCRYPTION_KEYS := true;
  
  /**
   * @desc Contains the private key for the EC certificate, used in case of re-enrolment
   */
  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);
  
  /**
   * @desc Indicate which encryption algorithem to be used for Enrolment Credencial
   */
  modulepar SecurityAlg PX_EC_ALG_FOR_EC  := e_nist_p256; // TODO Use RCA to determine encryption algorithm?
  /**
   * @desc Indicate which encryption algorithem to be used for Authorization Request (AA certificate of the IUT)
   */
  modulepar SecurityAlg PX_EC_ALG_FOR_AT  := e_nist_p256;
  /**
   * @desc Indicate which encryption algorithem to be used for Authorization Validation Request (EA certificate of the IUT)
   */
  modulepar SecurityAlg PX_EC_ALG_FOR_ATV := e_nist_p256;
  /**
   * @desc Indicate which encryption algorithem to be used for EcSignature (EA certificate of the IUT)
   */
  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_2 := 380;

  modulepar octetstring PX_INNER_EC_CERTFICATE_BITMAP_SSP_SCR := '01C0'O;

  modulepar octetstring PX_INNER_EC_CERTFICATE_INCORRECT_BITMAP_SSP_SCR := '01FF'O;

  modulepar octetstring PX_INNER_EC_CERTFICATE_INCORRECT_BITMAP_SSP_SCR_WRONG_VERSION := '00C0'O;
  
  modulepar octetstring PX_INNER_EC_CERTFICATE_INCORRECT_BITMAP_SSP_SCR_WRONG_SSP_BIT := '0180'O;
  
  modulepar octetstring PX_INNER_EC_CERTFICATE_BITMAP_SSP_CAM := '830001'O;
  
  modulepar octetstring PX_INNER_EC_CERTFICATE_BITMAP_SSP_DENM := '830001'O;
  
  modulepar octetstring PX_INNER_AT_CERTFICATE_BITMAP_SSP_CAM := '01FFFC'O;
  
  modulepar octetstring PX_INNER_AT_CERTFICATE_BITMAP_SSP_DENM := '01FFFFFF'O;
  
  modulepar integer PX_AUTH_MAX_N1 := 10;
  
} // End of module LibItsPki_Pixits
+755

File added.

Preview size limit exceeded, changes collapsed.

+175
Changes for lib/LibItsPki_TypesAndValues.ttcn: 175 added lines, 0 removed lines.
Original line number Diff line number Diff line
/**
 *  @author   ETSI / STF545
 *  @version  $Url$
 *            $Id$
 *  @desc     Module containing templates for IT PKI 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 LibItsPki_TypesAndValues {
  
  // LibCommon
  import from LibCommon_BasicTypesAndValues all;
  import from LibCommon_DataStrings all;
  
  // LibIts
  import from Ieee1609Dot2BaseTypes language "ASN.1:1997" all;
  import from EtsiTs103097Module language "ASN.1:1997" all;
  import from EtsiTs102941TrustLists language "ASN.1:1997" all;

  // LibItsGeoNetworking
  import from LibItsGeoNetworking_TypesAndValues all;

  group constants {

    const integer PkiProtocolVersion := 1;

    const charstring cc_ectl_rca_new := "CERT_RCA_NEW";
    const charstring cc_ectl_rca_untrust := "CERT_RCA_UNTRUST";
    const charstring cc_ectl_aa_new := "CERT_AA_NEW";
    
  } // End of group constants
  
  type enumerated SecurityAlg {
    e_nist_p256 (0),
    e_brainpool_p256_r1 (1),
    e_brainpool_p384_r1 (2)
  } // End of type SecurityAlg

  type set of PublicVerificationKey ListOfPublicVerificationKey;
  
  group utPrimitives {

    /**
     * @desc Upper Tester message to initialize ITS-S IUT 
     * @member hashedId8 In case of secured mode set, hashedId8 indicate which certificate the IUT shall use
     */
    type record UtPkiInitialize {
      Oct8 hashedId8 
    } with {
      variant "FIELDORDER(msb)"
    }

    /**
     * @desc Upper Tester results message of the PKI ITS-S IUT
     */
    type union UtPkiResults {
      boolean utPkiInitializeResult,
      boolean utPkiTriggerResult
    } with {
      variant ""
    } // End of type UtPkiResults

    /**
     * @desc    UT primitives for PKI ITS-S IUT
     * @member  triggerEnrolmentRequest Request to trigger an EnrolmentRequest
     */
    type union UtPkiTrigger {
      TriggerEnrolmentRequest     triggerEnrolmentRequest,
      TriggerAuthorizationRequest triggerAuthorizationRequest,
      TriggerUpdateEctl           triggerUpdateEctl,
      TriggerRequestForTlmCtl     triggerRequestForTlmCtl,
      TriggerRequestForRcaCtl     triggerRequestForRcaCtl
    } with {
      variant ""
    } // End of type UtPkiTrigger
    
    /**
     * @desc Request to trigger an EnrolmentRequest
     * @member cannonicalId The canonical identifier of the ITS-S
     * @member encAlgorithm The encrypion algorithm to be used (Nist P256 or Brainpool P256)
     * @member privateKey The private key to be used for signature of the requested EA certificate
     * @member compressedPublickey The compressed public key to be used for signature of the requested EA certificate (format: [02|03]<compressed public key>
     */
    type record TriggerEnrolmentRequest {
      octetstring cannonicalId,
      Oct1 encAlgorithm,
      octetstring privateKey,
      octetstring compressedPublickey
    } with {
      variant "FIELDORDER(msb)"
    } // End of type TriggerEnrolmentRequest
    
    type record TriggerAuthorizationRequest {
      octetstring cannonicalId,
      Oct1 encAlgorithm,
      octetstring privateKey,
      octetstring compressedPublickey
    } with {
      variant "FIELDORDER(msb)"
    } // End of type TriggerAuthorizationRequest

    type record TriggerUpdateEctl {
      charstring ectl_uri
    } // End of type TriggerUpdateEctl

    type record TriggerRequestForTlmCtl {
      charstring tlm_ctl_uri
    } // End of type TriggerRequestForTlmCtl

    type record TriggerRequestForRcaCtl {
      charstring tlm_ctl_uri
    } // End of type TriggerRequestForRcaCtl

  } with {
    encode "UpperTester"
    variant ""
  } // End of group utPrimitives
  
  group acPrimitives {
        
    /**
     * @desc    TA primitives for Pki
     */
    type union AcPkiPrimitive {
      AcSetSecurityData acSetSecurityData
    } with {
      variant ""
    }
        
    /**
     * @desc    Primitive for receiveing response from TA
     */
    type union AcPkiResponse {
      boolean     result
    } with {
      variant ""
    }
    
    type record AcSetSecurityData {
      charstring  certificateId,
      charstring  peer_certificateId,
      octetstring private_key,
      octetstring public_key_compressed,
      integer     public_key_compressed_mode
    } with {
      variant ""
      encode "LibItsPki"
    } // AcSetSecurityData
    
  } with {
    variant ""
    encode "AdapterControl"
  } // End of group acPrimitives
  
  type record InfoPortData {
    octetstring hashed_id8,
    EtsiTs103097Certificate at_certificate
  } // End of type InfoPortData

  type record of CrlEntry CrlEntries;

  type record of CtlCommand CtlCommands;

  type record of octetstring PrivateEcKeys;
  type record of octetstring PublicCompressedEcKeys;
  type record of integer EcCompressedModes;
  type record of HashedId8 EcHashedId8;
  type record of EtsiTs103097Certificate EcCertificates;
}
with {
  variant ""
  encode "LibItsPki"
}   // End of module LibItsPki_TypesAndValues
Loading
Loading