I have designed an ASN.1 module. When this module is transmitted a part of it shall be encrypted. I wonder if there is a nice way to handle this in ASN.1. I have included a simplified module below to describe the problem.PDU::= SEQUENCE { header Header, payload Payload - -this part shall be encrypted during transfer } Payload SEQUENCE { dataA INTEGER, dataB INTEGER, padding OCTETSTRING } During transfer the Payload shall be encrypted. In my current solution I have been forced to add a padding field to make sure that the data size fits with the encryption algorithm. I presume that there is a better way to describe this with ASN.1.
Please be a little more precise. Is it that Payload, as a SEQUENCE, would be encrypted and inserted into PDU as something else (not a SEQUENCE), or rather that dataA and dataB are each encrypted and inserted into Payload.
Please also explain the point of padding. Is it that the encryption algorithm only accepts fixed size blocks?
===================================================================== Conrad Sigona Voice Mail : 1-732-302-9669 x400 OSS Nokalva Fax : 1-614-388-4156 [EMAIL PROTECTED] My direct line : 1-315-845-1773 _______________________________________________ Asn1 mailing list [email protected] http://lists.asn1.org/mailman/listinfo/asn1
