Monday, October 25, 2010

ASN.1 Continued 2

ASN.1 protocol

So once you have read the tag and the length; the rest is simple. Read the bytes from the stream according to the length. This will be the value of that tag. Now you can interpret that accordingly. For example if you an element version in your stream
  1. First you will read that tag
  2. Then you will read the length ( Length is actually the number of the bytes for the in which value of version is stored)
  3. Then you will read the number of bytes according to the length and this will be value of the your 'version tag'
Thats it from my side on ASN.1 protocol using BER ( basic encoding rule). If you have any questions, queries please do write me in the comments section

No comments:

Post a Comment