Skip to content
LibItsPki_EncdecDeclarations.ttcn 2.48 KiB
Newer Older
module LibItsPki_EncdecDeclarations {
    
garciay's avatar
garciay committed
  // LibIts
  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;
garciay's avatar
garciay committed
  import from EtsiTs102941MessagesItss language "ASN.1:1997" all;
  import from EtsiTs103097Module language "ASN.1:1997" all;
garciay's avatar
garciay committed
  import from LibItsSecurity_TypesAndValues all;
garciay's avatar
garciay committed
  external function fx_enc_EtsiTs102941Data(in EtsiTs102941MessagesItss.EtsiTs102941Data p_etsi_ts_102941_data) return bitstring
  with {extension "prototype(convert) encode(PER)"}


  external function fx_dec_EtsiTs102941Data(inout bitstring b, out EtsiTs102941MessagesItss.EtsiTs102941Data 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)"}
garciay's avatar
garciay committed
  external function fx_dec_InnerEcRequest(inout bitstring b, out EtsiTs102941TypesEnrolment.InnerEcRequest p) return integer
  with {extension "prototype(sliding) decode(PER)"}
garciay's avatar
garciay committed
  /**
   * @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)"}
garciay's avatar
garciay committed
    
garciay's avatar
garciay committed
  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 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)"}
    
} // End of module LibItsPki_EncdecDeclarations