-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limite depth on BerTlv find #22
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current BerTlv find is searching for the TAG recursively and sometimes ends up returns incorrect values.
Example:
If I have the following data and want to find the BerTLV 0x80 under 0x62, it will return the 0x80 inside 0xA5.
62 19
82 02 4121
83 02 2F05
A5 03 800161
8A 01 05
8B 03 2F0605
80 02 000A
One option would be to create a findOnChildBerTlv, to limit the search to a 1 level depth.
Adding a new parameter maxDepth would be another solution.
The text was updated successfully, but these errors were encountered: