-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
UTF8String with uper #48
Comments
This might be fixed on the master branch. Give it a try and I can create a new release if it works. |
hello Eric, I just tested on master branch,and no error when check_constraints=True,but asn1tools seem like using per style to encode length.e.g. |
Please supply data I can use to reproduce the issue |
I think Marben is wrong. Size constraints are ignored by PER and UPER for UTF8String as its not a known-multiplier character string type. See 27.6 in https://www.itu.int/ITU-T/studygroups/com17/languages/X.691-0207.pdf. |
The new release is called 0.138.0, available on PyPI. |
ok, thank you for new release, about UTF8String,I should check again. |
Any news? |
I think you are right about length encoding with uper, but there's exactly difference when encoding UTF8String compared to marben, I paste here wish you can help me find out why, the bold is difference. from marben:
from asn1tools:
and .asn specification is
input data is
Finally, happy Christmas Day! |
I don't have time to troubleshoot this in detail, but I think asn1tools is correct, and Marben wrong. |
sorry for interrupting you,but it's because asn specification inconsistent which leads to different encode result. |
You can give http://asn1-playground.oss.com/ a try. It's pretty helpful troubleshooting bad encodings. |
hello Eric,I encounter an issue when encoding UTF8String with uper and checkConstaints=True, it throws error
"Encode Error installationorder:uuid:Expected a Character in ' ',but got 'v'(0x76)."
I debugged and find "permitted_alphabet" in constaints_checker.py is ' ', can you help me with the issue? lots of thanks.
The text was updated successfully, but these errors were encountered: