[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: ABNF of numericoid



Ramsay, Ron writes:

> So, how do you parse it? Eg, 44 44 44 (hex)?

[Summary after a brief exchange with Ron]

a BER 'OBJECT IDENTIFIER' is represented as a list of integers
<(40*value1 + value2), (value3), (value4), ...>.  Each such integer is
represented as an octet sequence of base-128 digits, where 8. bit = 1
except in the last octet.  0x44 has 8.bit = 0, so 44 44 44 hex are 3
such integers.

So the OID is min(0x44/40, 2).(0x44 - 40*value1).0x44.0x44 = 1.28.68.68.

-- 
Hallvard