Редагувати

Поділитися через


AlgorithmIdentifier Constructors

Definition

Overloads

AlgorithmIdentifier()

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

AlgorithmIdentifier(Oid)

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

AlgorithmIdentifier(Oid, Int32)

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

AlgorithmIdentifier()

Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs

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

A cryptographic operation could not be completed.

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.

Applies to

AlgorithmIdentifier(Oid)

Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs

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
Public Sub New (oid As Oid)

Parameters

oid
Oid

An object identifier for the algorithm.

Exceptions

A cryptographic operation could not be completed.

Remarks

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

Applies to

AlgorithmIdentifier(Oid, Int32)

Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs
Source:
AlgorithmIdentifier.cs

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
Public Sub New (oid As Oid, keyLength As Integer)

Parameters

oid
Oid

An object identifier for the algorithm.

keyLength
Int32

The length, in bits, of the key.

Exceptions

A cryptographic operation could not be completed.

Remarks

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

Applies to