Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

OIDs 2.40+ are not supported #78

Open
danielmarschall opened this issue Apr 28, 2019 · 1 comment
Open

OIDs 2.40+ are not supported #78

danielmarschall opened this issue Apr 28, 2019 · 1 comment

Comments

@danielmarschall
Copy link

danielmarschall commented Apr 28, 2019

I have looked at your implementation of Object Identifiers and found out that there is following problem:

The modulo-40 code is not correct, since it does not support the case of OID 2.40, 2.41, etc. Your modulo-40 code would encode 2.40 as 3.0.

You can find a implementation which implements 2.40+ OIDs correctly here. Testcases/checks of the DER encoding can be done here.

(Update: Ignore my initial comment about 128bit UUIDs)

@danielmarschall danielmarschall changed the title UUID OIDs and OIDs 2.40+ are not supported OIDs 2.40+ are not supported Apr 28, 2019
@afk11
Copy link
Collaborator

afk11 commented Apr 28, 2019

Thanks for opening this issue. I'll try find some time to dig into this soon!

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

No branches or pull requests

2 participants