LibItsPki_EncdecDeclarations.ttcn 1.42 KB
Newer Older
module LibItsPki_EncdecDeclarations {
    
    // LibIts
    import from EtsiTs102941BaseTypes language "ASN.1:1997" all;
    import from EtsiTs102941TypesEnrolment language "ASN.1:1997" all;
    import from EtsiTs103097Module language "ASN.1:1997" all;
  
    import from LibItsSecurity_TypesAndValues all;
    
    /**
garciay's avatar
garciay committed
     * @desc Encoding function for EtsiTs102941TypesEnrolment InnerEcRequest
     * @param p The certificate to encode
     * @return The encode message in OER format
     */
garciay's avatar
garciay committed
    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)"}
    
    external function fx_dec_InnerEcResponse(inout bitstring b, out EtsiTs102941TypesEnrolment.InnerEcResponse p) return integer
        with {extension "prototype(sliding) decode(PER)"}
    
} // End of module LibItsPki_EncdecDeclarations