- Each subidentifier is encoded in 7-bit base 128
- The base 128 digits are encoded in hex (base 16)
- For each value that requires more than one byte to encode, the leftmost bit is 1 in each byte except for the final one. The final byte always has 0 for the leftmost bit.
- The first two values of the OID are combined with the following formula
-
- Given an OID of X.Y.Z, X and Y are combined as: X * 40 + Y
- Combine 2 and 100 as follows: 2 * 40 + 100 = 180
- Now you have 2 numbers: 180 and 3.
- 180 in Base 128 = 128 + 52
-
- converted to hex, 180 in base 128 = 0x01 0x34
- Set the leftmost bit in the first byte: 0x81, 0x34
- 3 in Base 128 = 3
-
- converted to hex, 3 in base 128 = 0x03
- Since this is only one byte long, the lowest bit stays 0
- Combine the results to get: 0x81 0x34 0x03
The following psuedo code explains how to convert the string form of an OID into a binary form that SSL-C can understand:
For example, we'll encode 2.100.3:
Merge the first two values together with this formula: n1 * 40 + n2
/* The first value (n1) is always 0, 1, or 2
2 * 40 + 100 = 180
we are now encoding 180 3 */
For each value
Convert each value to base 128
/* 180 (base 10) = 1 52 (base 128)
3 (base 10) = 3 (base 128)
This can be understood as:
180 = 1 * 128^1 + 52 * 128^0
3 = 3 * 128 ^0
180 = 128 + 52 = 0x01 (128's place) 0x34 (1's place)
3 = 0x03*/
For all bytes except the last one, set the left most bit
/* 0x01 0x34 becomes 0x81 0x34
0x03 stays 0x03 */
Put these into a byte array with a trailing NULL.
/* In C, this looks like:
char oid[4] = { 0x81, 0x34, 0x03, '\0' };
*/
Related Articles
How to convert a file-based RSA SecurID software token from .sdtid format to a QR code in Authentication Manager 8.x 533Number of Views How to convert the date field number from a request form to a human readable date in RSA Via Lifecycle and Governance 149Number of Views How do I reset the password for my RSA Community account? 353Number of Views How do I reset the On-Demand Authentication (ODA) PIN for my RSA Community account? 377Number of Views Form approval node shows exception caught during script evaluation error in RSA Via Lifecycle and Governance 223Number of Views
Trending Articles
Passwordless Authentication in Windows MFA Agent for Active Directory – Quick Setup Guide RSA Authentication Manager Upgrade Process RSA Authentication Manager 8.9 Release Notes (January 2026) An example of SSO using SAML and ADFS with RSA Identity Management and Governance 6.9.x RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide