LibItsPki_Templates.ttcn 79.4 KB
Newer Older
    version        := 2,
    generationTime := p_generationTime,
    type_          := p_certificateType,
    flags          := p_flags,
    linkageInfo    := p_linkageInfo,
    certEncKey     := p_certEncKey,
    tbsCert        := p_tbsCert
  } // End of template mw_ra_aca_cert_request

  template (value) AcaRaCertResponse m_ra_aca_cert_response(
                                                            in template (value) Time32 p_generationTime,
                                                            in template (value) HashedId8 p_requestHash,
                                                            in template (value) AcaResponse p_acaResponse
                                                            ) := {
    version        := 2,
    generationTime := p_generationTime,
    requestHash    := p_requestHash,
    acaResponse    := p_acaResponse
  } // End of template m_ra_aca_cert_response

  template (present) AcaRaCertResponse mw_ra_aca_cert_response(
                                                               template (present) Time32 p_generationTime := ?,
                                                               template (present) HashedId8 p_requestHash := ?,
                                                               template (present) AcaResponse p_acaResponse := ?
                                                               ) := {
    version        := 2,
    generationTime := p_generationTime,
    requestHash    := p_requestHash,
    acaResponse    := p_acaResponse
  } // End of template mw_ra_aca_cert_response

  template (value) AcaResponse m_aca_response_plain(
                                                    in template (value) AcaEeCertResponsePlainSpdu p_plain
                                                    ) := {
    plain := p_plain
  } // End of template m_aca_response_plain

  template (present) AcaResponse mw_aca_response_plain(
                                                       template (present) AcaEeCertResponsePlainSpdu p_plain := ?
                                                       ) := {
    plain := p_plain
  } // End of template mw_aca_response_plain

  template (value) AcaResponse m_aca_response_cubk(
                                                   in template (value) AcaEeCertResponseCubkSpdu p_cubk
                                                   ) := {
    cubk := p_cubk
  } // End of template m_aca_response_cubk

  template (present) AcaResponse mw_aca_response_cubk(
                                                      template (present) AcaEeCertResponseCubkSpdu p_cubk := ?
                                                      ) := {
    cubk := p_cubk
  } // End of template mw_aca_response_cubk

/*
    ScmsPdu-Scoped {
      AcaEeInterfacePdu (WITH COMPONENTS {
        acaEeCertResponse
      })
    }
*/
  template (value) AcaEeCertResponsePlainSpdu m_plain_spdu := { // TODO FSCOM

  } // End of template m_plain_spdu

  template (present) AcaEeCertResponsePlainSpdu mw_plain_spdu := { // TODO FSCOM

  } // End of template mw_plain_spdu


  template (value) AcaEeInterfacePdu m_aca_ee_interface_pdu(
                                                            in template (value) AcaEeCertResponse p_aca_ee_cert_response
                                                            ) := {
    acaEeCertResponse := p_aca_ee_cert_response
  } // End of template m_aca_ee_interface_pdu

  template (present) AcaEeInterfacePdu mw_aca_ee_interface_pdu(
                                                               template (present) AcaEeCertResponse p_aca_ee_cert_response := ?
                                                               ) := {
    acaEeCertResponse := p_aca_ee_cert_response
  } // End of template mw_aca_ee_interface_pdu

  template (omit) AcaEeCertResponse m_aca_ee_cert_response(
                                                           in template (value) Time32 p_generationTime,
                                                           in template (value) Certificate p_certificate,
                                                           in template (omit) Oct32 p_privateKeyInfo := omit
                                                           ) := {
    version        := 2,
    generationTime := p_generationTime,
    certificate    := p_certificate,
    privateKeyInfo := p_privateKeyInfo
  } // End of template m_aca_ee_cert_response

  template (present) AcaEeCertResponse mw_aca_ee_cert_response(
                                                               template (present) Time32 p_generationTime := ?,
                                                               template (present) Certificate p_certificate := ?,
                                                               template Oct32 p_privateKeyInfo := *
                                                               ) := {
    version        := 2,
    generationTime := p_generationTime,
    certificate    := p_certificate,
    privateKeyInfo := p_privateKeyInfo
  } // End of template mw_aca_ee_cert_response

  template (value) EeRaDownloadRequest m_ee_ra_download_request(
                                                                in Time32 p_generationTime,
                                                                in charstring p_filename
                                                                ) := {
    generationTime := p_generationTime,
    filename       := p_filename
  } // End of template m_ee_ra_download_request

  template (present) EeRaDownloadRequest mw_ee_ra_download_request(
                                                                   template (present) Time32 p_generationTime := ?,
                                                                   template (present) charstring p_filename := ?
                                                                   ) := {
    generationTime := p_generationTime,
    filename       := p_filename
  } // End of template mw_ee_ra_download_request

YannGarcia's avatar
YannGarcia committed
  template (value) ToBeSignedRcaCtl m_to_be_signed_rca_full_ctl(
                                                                in Time32 p_next_update,
                                                                in UInt8 p_ctl_sequence,
                                                                in template (value) CtlCommands p_ctl_commands
                                                                ) := {
    version     := 1,
    nextUpdate  := p_next_update,
    isFullCtl   := true,
    ctlSequence := p_ctl_sequence,
    ctlCommands := p_ctl_commands
  } // End of template m_to_be_signed_rca_full_ctl

  template (present) ToBeSignedRcaCtl mw_to_be_signed_rca_full_ctl := {
    version     := 1,
    nextUpdate  := ?,
    isFullCtl   := true,
    ctlSequence := ?,
    ctlCommands := ?
  } // End of template mw_to_be_signed_rca_full_ctl

  template (present) ToBeSignedRcaCtl mw_to_be_signed_rca_delta_ctl := {
    version     := 1,
    nextUpdate  := ?,
    isFullCtl   := false,
    ctlSequence := ?,
    ctlCommands := ?
  } // End of template mw_to_be_signed_rca_delta_ctl

  template (value) ToBeSignedTlmCtl m_to_be_signed_tlm_full_ctl(
                                                                in Time32 p_next_update,
                                                                in UInt8 p_ctl_sequence,
                                                                in template (value) CtlCommands p_ctl_commands
                                                                ) := {
    version     := 1,
    nextUpdate  := p_next_update,
    isFullCtl   := true,
    ctlSequence := p_ctl_sequence,
    ctlCommands := p_ctl_commands
  } // End of template m_to_be_signed_tlm_full_ctl

  template (value) ToBeSignedTlmCtl m_to_be_signed_tlm_delta_ctl(
                                                                in Time32 p_next_update,
                                                                in UInt8 p_ctl_sequence,
                                                                in template (value) CtlCommands p_ctl_commands
                                                                ) modifies m_to_be_signed_tlm_full_ctl := {
    isFullCtl   := false
YannGarcia's avatar
YannGarcia committed
  } // End of template m_to_be_signed_tlm_delta_ctl

  template (present) ToBeSignedTlmCtl mw_to_be_signed_tlm_full_ctl(
                                                                   template (present) Time32 p_next_update := ?,
                                                                   template (present) UInt8 p_ctl_sequence := ?,
                                                                   template (present) CtlCommands p_ctl_commands := ?
                                                                   ) := {
    version     := 1,
    nextUpdate  := p_next_update,
    isFullCtl   := true,
    ctlSequence := p_ctl_sequence,
    ctlCommands := p_ctl_commands
  } // End of template mw_to_be_signed_tlm_full_ctl

  template (present) ToBeSignedTlmCtl mw_to_be_signed_tlm_delta_ctl(
                                                                    template (present) Time32 p_next_update := ?,
                                                                    template (present) UInt8 p_ctl_sequence := ?,
                                                                    template (present) CtlCommands p_ctl_commands := ?
                                                                    ) modifies mw_to_be_signed_tlm_full_ctl := {
    isFullCtl   := false
YannGarcia's avatar
YannGarcia committed
  } // End of template mw_to_be_signed_tlm_delta_ctl

  template (value) ToBeSignedCrl m_to_be_signed_crl(
                                                    in Time32 p_this_update,
                                                    in Time32 p_next_update,
                                                    in CrlEntries p_entries
                                                    ) := {
    version     := 1,
    thisUpdate  := p_this_update,
    nextUpdate  := p_next_update,
    entries     := p_entries
  } // End of template m_to_be_signed_crl

  template (present) ToBeSignedCrl mw_to_be_signed_crl := {
    version     := 1,
    thisUpdate  := ?,
    nextUpdate  := ?,
    entries     := ?
  } // End of template mw_to_be_signed_crl

  template (value) CtlCommand m_ctrl_command_add(
                                                 in template (value) CtlEntry p_add
                                                 ) := {
    add := p_add
  } // End of template m_ctrl_command_add

  template (value) CtlCommand m_ctrl_command_delete(
                                                    in template (value) CtlDelete p_delete
                                                    ) := {
    delete := p_delete
  } // End of template m_ctrl_command_delete

  template (value) CtlEntry m_ctl_entry_rca(
                                            in template (value) RootCaEntry p_rca
                                            ) := {
    rca := p_rca
  } // End of template m_ctl_entry_rca

  template (present) CtlEntry mw_ctl_entry_rca(
                                               template (present) RootCaEntry p_rca := ?
                                               ) := {
    rca := p_rca
  } // End of template mw_ctl_entry_rca

  template (value) CtlEntry m_ctl_entry_aa(
                                           in template (value) AaEntry p_aa
                                           ) := {
    aa := p_aa
  } // End of template m_ctl_entry_aa

  template (present) CtlEntry mw_ctl_entry_aa(
                                              template (present) AaEntry p_aa := ?
                                              ) := {
    aa := p_aa
  } // End of template mw_ctl_entry_aa

  template (value) TlmEntry m_tlm_entry(
                                        in template (value) EtsiTs103097Certificate p_selfSignedTLMCertificate,
                                        in template (value) Url p_accessPoint
                                        ) := {
    selfSignedTLMCertificate := p_selfSignedTLMCertificate,
    successorTo              := omit,
    accessPoint              := p_accessPoint
  } // End of template m_tlm_entry

YannGarcia's avatar
YannGarcia committed
  template (present) TlmEntry mw_tlm_entry(
                                           template (present) EtsiTs103097Certificate p_selfSignedTLMCertificate := ?,
                                           template (present) Url p_accessPoint := ?
                                           ) := {
    selfSignedTLMCertificate := p_selfSignedTLMCertificate,
    successorTo              := *,
    accessPoint              := p_accessPoint
  } // End of template mw_tlm_entry

  template (value) RootCaEntry m_root_ca_entry(
                                               in template (value) EtsiTs103097Certificate p_selfsignedRootCa
                                               ) :=  {
    selfsignedRootCa := p_selfsignedRootCa,
    successorTo      := omit
  } // End of template m_root_ca_entry

  template (present) RootCaEntry mw_root_ca_entry(
                                                  template (present) EtsiTs103097Certificate p_selfsignedRootCa := ?
                                                  ) :=  {
    selfsignedRootCa := p_selfsignedRootCa,
    successorTo       := *
  } // End of template mw_root_ca_entry

  template (value) AaEntry m_aa_entry(
                                      in template (value) EtsiTs103097Certificate p_aaCertificate,
                                      in template (value) Url p_accessPoint
                                      ) :=  {
    aaCertificate := p_aaCertificate,
    accessPoint   := p_accessPoint
  } // End of template m_aa_entry

  template (present) AaEntry mw_aa_entry(
                                         template (present) EtsiTs103097Certificate p_aaCertificate := ?,
                                         template (present) Url p_accessPoint := ?
                                         ) :=  {
    aaCertificate := p_aaCertificate,
    accessPoint   := p_accessPoint
  } // End of template mw_aa_entry

  template (value) EaEntry m_ea_entry(
                                      in template (value) EtsiTs103097Certificate p_eaCertificate,
                                      in template (value) Url p_aaAccessPoint
                                      ) := {
    eaCertificate     := p_eaCertificate,
    aaAccessPoint     := p_aaAccessPoint,
    itsAccessPoint    := omit
  } // End of template m_ea_entry

  template (present) EaEntry mw_ea_entry(
                                         template (present) EtsiTs103097Certificate p_eaCertificate := ?,
                                         template (present) Url p_aaAccessPoint := ?
                                         ) := {
    eaCertificate     := p_eaCertificate,
    aaAccessPoint     := p_aaAccessPoint,
    itsAccessPoint    := *
  } // End of template mw_ea_entry

  template (value) DcEntry m_dc_entry(
                                      in template (value) Url p_url,
                                      in template (value) HashedId8s p_cert
                                      ) := {
    url  := p_url,
    cert := p_cert
  } // End of template m_dc_entry

YannGarcia's avatar
YannGarcia committed
  template (present) DcEntry mw_dc_entry(
                                         template (present) Url p_url := ?,
                                         template (present) HashedId8s p_cert := ?
                                         ) := {
    url  := p_url,
    cert := p_cert
  } // End of template mw_dc_entry

  group security_templates {
    template (omit) HeaderInfo m_headerInfo_inner_pki_request(
                                                              in template (value) Psid p_psid := c_its_aid_SCR,
                                                              in template (value) Time64 p_generationTime
                                                              ) modifies m_ieee1609Dot2_headerInfo := {
        generationTime       := p_generationTime
    };
    
    template (omit) HeaderInfo m_headerInfo_inner_pki_response(
                                                                in template (value) Psid p_psid := c_its_aid_SCR,
                                                                in template (value) Time64 p_generationTime
                                                                ) modifies m_ieee1609Dot2_headerInfo := {
        generationTime       := p_generationTime
    };
    
    template (omit) HeaderInfo m_headerInfo_inner_pki_ctl_response(
                                                                    in template (value) Psid p_psid := c_its_aid_CPOC,
                                                                    in template (value) Time64 p_generationTime
                                                                    ) modifies m_ieee1609Dot2_headerInfo := {
        generationTime       := p_generationTime
    };

    template (omit) HeaderInfo m_headerInfo_inner_pki_crl_response(
                                                                    in template (value) Psid p_psid := c_its_aid_CRL,
                                                                    in template (value) Time64 p_generationTime
                                                                    ) modifies m_ieee1609Dot2_headerInfo := {
        generationTime       := p_generationTime
    };

    template (present) HeaderInfo mw_headerInfo_inner_pki_request(
                                                                  template (present) Psid p_psid := c_its_aid_SCR,
                                                                  template (present) Time64 p_generationTime := ?
                                                                  ) modifies mw_ieee1609Dot2_headerInfo := {
            generationTime       := p_generationTime,
            expiryTime           := omit,
            generationLocation   := omit
    };
    
    template (present) HeaderInfo mw_headerInfo_outer_pki_request(
                                                                  template (present) Psid p_psid := c_its_aid_SCR,
                                                                  template (present) Time64 p_generationTime := ?
                                                                  ) modifies mw_ieee1609Dot2_headerInfo := {
            generationTime       := p_generationTime,
            expiryTime           := omit,
            generationLocation   := omit
    };
    
    template HeaderInfo mw_headerInfo_inner_pki_response(
                                                          template (present) Psid p_psid := c_its_aid_SCR,
                                                          template Time64 p_generationTime := *
                                                          ) modifies mw_ieee1609Dot2_headerInfo := {
      generationTime       := p_generationTime,
      expiryTime           := omit,
      generationLocation   := omit
    }
  }

YannGarcia's avatar
YannGarcia committed
} // End of module LibItsPki_Templates