AlgorithmIdentifier AlgorithmIdentifier AlgorithmIdentifier AlgorithmIdentifier Constructors

Definition

Overloads

AlgorithmIdentifier() AlgorithmIdentifier() AlgorithmIdentifier()

The AlgorithmIdentifier() constructor creates an instance of the AlgorithmIdentifier class by using a set of default parameters.

AlgorithmIdentifier(Oid) AlgorithmIdentifier(Oid) AlgorithmIdentifier(Oid)

The AlgorithmIdentifier(Oid) constructor creates an instance of the AlgorithmIdentifier class with the specified algorithm identifier.

AlgorithmIdentifier(Oid, Int32) AlgorithmIdentifier(Oid, Int32) AlgorithmIdentifier(Oid, Int32)

The AlgorithmIdentifier(Oid, Int32) constructor creates an instance of the AlgorithmIdentifier class with the specified algorithm identifier and key length.

AlgorithmIdentifier() AlgorithmIdentifier() AlgorithmIdentifier()

The AlgorithmIdentifier() constructor creates an instance of the AlgorithmIdentifier class by using a set of default parameters.

public:
 AlgorithmIdentifier();
public AlgorithmIdentifier ();
Public Sub New ()

Exceptions

Remarks

The AlgorithmIdentifier class has the following default property values.

Property Default value
Oid 1.2.840.113549.3.7 (RSA_DES_EDE3_CBC)
KeyLength The maximum provided by the default Cryptographic Service Provider

To gain the highest degree of control over an application constructing an instance of this class, use one of the constructors that allows the algorithm to be set by passing in its Oid object. This guards against the possibility that the default algorithm could change because of security or other considerations.

AlgorithmIdentifier(Oid) AlgorithmIdentifier(Oid) AlgorithmIdentifier(Oid)

The AlgorithmIdentifier(Oid) constructor creates an instance of the AlgorithmIdentifier class with the specified algorithm identifier.

public:
 AlgorithmIdentifier(System::Security::Cryptography::Oid ^ oid);
public AlgorithmIdentifier (System.Security.Cryptography.Oid oid);
new System.Security.Cryptography.Pkcs.AlgorithmIdentifier : System.Security.Cryptography.Oid -> System.Security.Cryptography.Pkcs.AlgorithmIdentifier

Parameters

oid
Oid Oid Oid Oid

An object identifier for the algorithm.

Exceptions

Remarks

For the default property values used with this constructor, see AlgorithmIdentifier().

AlgorithmIdentifier(Oid, Int32) AlgorithmIdentifier(Oid, Int32) AlgorithmIdentifier(Oid, Int32)

The AlgorithmIdentifier(Oid, Int32) constructor creates an instance of the AlgorithmIdentifier class with the specified algorithm identifier and key length.

public:
 AlgorithmIdentifier(System::Security::Cryptography::Oid ^ oid, int keyLength);
public AlgorithmIdentifier (System.Security.Cryptography.Oid oid, int keyLength);
new System.Security.Cryptography.Pkcs.AlgorithmIdentifier : System.Security.Cryptography.Oid * int -> System.Security.Cryptography.Pkcs.AlgorithmIdentifier

Parameters

oid
Oid Oid Oid Oid

An object identifier for the algorithm.

keyLength
Int32 Int32 Int32 Int32

The length, in bits, of the key.

Exceptions

Remarks

The keyLength parameter is ignored for algorithms that use a fixed key length.

Applies to