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: fix encoding and decoding OIDs #157

Merged
merged 3 commits into from
Nov 5, 2019
Merged

Conversation

tomato42
Copy link
Member

@tomato42 tomato42 commented Nov 3, 2019

make the code handle oids with a large second subidentifier (fixes #155)

make the code raise correct exception when the encoded multi-byte
subidentifier is missing the last byte

move OID test coverage to test_der module and extend it

update the OID generators in random DER generator to generate OIDs with
large second subidentifier

@tomato42 tomato42 added this to the v0.14 milestone Nov 3, 2019
@tomato42 tomato42 added the bug unintended behaviour in ecdsa code label Nov 3, 2019
@tomato42 tomato42 self-assigned this Nov 3, 2019
@coveralls
Copy link

coveralls commented Nov 3, 2019

Coverage Status

Coverage increased (+0.3%) to 95.264% when pulling 2dac8ee on tomato42:large-oids into d6cb288 on warner:master.

make the code handle oids with a large second subidentifier (fixes tlsfuzzer#155)

make the code raise correct exception when the encoded multi-byte
subidentifier is missing the last byte

move OID test coverage to test_der module and extend it

update the OID generators in random DER generator to generate OIDs with
large second subidentifier
Copy link

@ep69 ep69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Learned a lot about OIDs, looks good to me.

src/ecdsa/der.py Outdated Show resolved Hide resolved
the X.690 refers to bits from 1 to 8 rather than from 0 to 7
use the "MSB" as an unambiguous name
@tomato42 tomato42 merged commit c5e7ac2 into tlsfuzzer:master Nov 5, 2019
@tomato42 tomato42 deleted the large-oids branch November 5, 2019 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unintended behaviour in ecdsa code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incorrect handling of OIDs with large second subidentifier
3 participants