[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Losing header bytes



Hello,

 

I have taken a blob of ASN1 and decoded it using the BDec method of the eSNACC generated code and then used the BEnc to re-encode it and this has lost the initial header information from the original blob.

 

Thus  0xA0, 0x82, 0x0F, 0xCE, 0x31, 0x82, 0x01, 0x77 is missing from the start

 

Where 0FCE is the length of the encoded data (AsnBuf.length minus the 4 byte message header length (0x31 0x82 0x01 0x77))

The length of the header can be obtained by encoding the message header separately.

Is it possible to obtain the original header information from the decoded data?

 

Thanks

John