[EMAIL PROTECTED] wrote:
>
> while studying ASN.1 specs i am not very clear about this perticular OID
> i will like to know the logic and procedure for representation of this OID
> and all those where the value is more than FF.
>
> the OID - 1 0 8571 2
>
> represented as T L V
> 06 04 28 C2 7B 02
>
> here the 8571 is represented as C2 7B i am not clear about this part.
> *********************************************************************************
This is described in X.690.
But shortly this is:
Take the first two components x and y and calculate the subidentifier z
= x * 40 + y
In your case x=1, y=0 => z=40 (0x28)
a)
The subidentifier is cut into pieces of 7 bits.
Each piece is put into bits 7 to 1 of an octet. If there are more pieces
in the subidentifier, bit eight is set to 1. If it is the last piece of
the subidentifier, bit eight is set to 0
b)
Take each following component, call it a subidentifier and goto a)
Best regards
Egon Andersen
--
* Talura ApS * Phone: +45 43 52 50 00 *
* Baldersh�j 24 B * mailto:[EMAIL PROTECTED] *
* DK-2635 Ish�j * http://www.talura.dk *