PHPASN1 icon indicating copy to clipboard operation
PHPASN1 copied to clipboard

OIDs 2.40+ are not supported

Open danielmarschall opened this issue 5 years ago • 1 comments

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 avatar Apr 28 '19 20:04 danielmarschall

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

afk11 avatar Apr 28 '19 23:04 afk11