Christmas is coming soon! To thank for the support from all our dear customers, Christmas promotional activity is going on in JavaCardOS online store. For more activities details, please check this post.

parse nested TLV structure

Communication

Moderator: UNKNwYSHSA

lefibr
Posts: 16
Joined: Thu Feb 18, 2016 2:38 am
Points :151
Contact:

parse nested TLV structure

Post by lefibr » Tue Mar 01, 2016 3:33 am

I need to parse nested TLV structure. Is there anyone that know how to parse nested TLV?

lefibr
Posts: 16
Joined: Thu Feb 18, 2016 2:38 am
Points :151
Contact:

Re: parse nested TLV structure

Post by lefibr » Wed Mar 09, 2016 2:26 am

Is there anybody know this? Pls help.

User avatar
mabel
Posts: 234
Joined: Mon May 18, 2015 3:09 am
Points :1663
Contact:

Re: parse nested TLV structure

Post by mabel » Wed Mar 09, 2016 2:29 am

If your parsed tag has bit 5 set (0x20) the tag is constructed, call your parsing routine recursively on the tag contents.
If tag has bit 5 clear, then contents is raw data.

And also maybe this link is helpful to you.
https://github.com/a2800276/tlv/blob/ma ... /parser.rb

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer