Mono Class Library: System.Security.Cryptography.CryptoConfig Overview | Members

System.Security.Cryptography.CryptoConfig.EncodeOID Method

Convert the OID string (dotted notation) into an ASN.1 encoded OID. [Edit]

public static byte[] EncodeOID (string str)

Parameters

str
The OID string in dotted notation (e.g. "1.3.14.3.2.26"). [Edit]

Returns

A byte array containing the ASN.1 encoded OID. [Edit]

Remarks

A System.Security.Cryptography.CryptographicUnexpectedOperationException will be thrown if the OID is invalid, like: [The 'bullet' type of list has not been implemented in the ECMA stylesheet.]

A OverflowException will be thrown if a part of the OID is bigger than int.int.MaxValue.

[Edit]

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0