Hello
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.
/ Henrik Andersson
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1