Skip to content
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

DER: error while encoding OCTET STRING more than 255 bytes long #5

Closed
olegst90 opened this issue Jan 24, 2018 · 4 comments
Closed

DER: error while encoding OCTET STRING more than 255 bytes long #5

olegst90 opened this issue Jan 24, 2018 · 4 comments

Comments

@olegst90
Copy link

olegst90 commented Jan 24, 2018

When I try to encode an OCTET STRING more than 255 bytes long, I get an exception in codecs/der.py:
490: encoded.append(len(data))
because the implementation seems not to support multibyte length fields. The same must happen with other array types.

Please, mention this limitation in the lib description.

@eerimoq
Copy link
Owner

eerimoq commented Jan 24, 2018

It clearly states that all codecs are under development. It is close to impossible to have a list of all limitations as there are so many. I'll implement this tonight if it's easy, which it likely is.

@olegst90
Copy link
Author

Thank you in advance.

@eerimoq
Copy link
Owner

eerimoq commented Jan 24, 2018

There is a fix in commit 535f0f0, which is released to PyPI in version 0.23.0.

I'm sure you will find other missing features, and likely a bug or two. Just post any issues here and I'll fix them.

@olegst90
Copy link
Author

Thank you so much, I've already tried and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants