HaYoung Lee - 2016-10-03

I'm trying to make der encoder from the input data in ASN.1 and the module in ASN.1. The input data is variable and the module is constant. I successfully compiled the source file with the module and now I need to deal with the input data.

This ASN.1 compiler can provide a DER encoder from BER/XER. But my case the input is not BER/XER but just a plain text file so I need to make the target structure from the input data like below. I have not found a good way to parse the input data yet. Are there any existing functions in asn1c to parse the input data? Or is there anybody to recommend how to make the target structure from the input data?

value1 ProfileElement ::= header : {
  major-version 2,
  minor-version 0,
  profileType "Sample Profile",
  iccid '89019990001234567893'H,
  eUICC-Mandatory-services {
    usim NULL,
    milenage NULL,
    javacard NULL
  },
  eUICC-Mandatory-GFSTEList {
    { 2 23 143 1 2 1 },
    { 2 23 143 1 2 4 }
  }
}

value2 ProfileElement ::= end :
{
    end-header
    {
        identification 19
    }
}
 

Last edit: HaYoung Lee 2016-10-03