Hello Karimkhan, > Hello All, > > When using ASN-1 PER, what are the mininum and maximum values used for an > integer when non are specified in the description ? > > For instance : > NumberOfTries INTEGER > > How can we know min and max values of NumberOfTries ?
ASN.1 integers can be arbitrarily long. If you don't have any subtype constraints usually it will be the min/max value of "int" for the platform you are using. However, compilers "Oss Nokalva" allow you define the size of INTEGER (like 16 or 32 or 64 bits) by using vendor specific directives. As I said ASN.1 integer could be arbitrarily long, it is always recommended that you constrain the type whenever possible in order to facilitate interworking, and subtype constraints will be useful to reduce the size of encoded data, if you are using PER. Rajul > Thanks > Regards, > Karimkhan > > > >
