[ASN.1] Max value of OBJECT IDENTIFIER's 2nd component

2004-04-04 Thread Hallvard B Furuseth
Hi, What is the maximum value of an OBJECT IDENTIFIER's 2nd component, when 1st component is 2? I haven't got X.660, all I know is that BER encodes it with one octet = * 1st component 40 + 2nd component. So I can think of four possibilities: - 39, as when 1st component 2, - 47, if the BER

Re: [ASN.1] Max value of OBJECT IDENTIFIER's 2nd component

2004-04-04 Thread John Larmouth
The answer is unlimited, AND that BER ***CAN encode all values. The OID encoding uses bit 8 as a more bit (for all components), with the value in the concatenation of the bottom seven bits of as many (the minimum number) of bits that it takes. So OID {2 } encodes as a single component

Re: [ASN.1] Max value of OBJECT IDENTIFIER's 2nd component

2004-04-04 Thread Hallvard B Furuseth
John Larmouth writes: The answer is unlimited, AND that BER ***CAN encode all values. Thanks, but, um... I guess the question is Why do you think BER encodes it as a single octet? RSA's A Layman's Guide to a Subset of ASN.1, BER, and DER,