Op Englesch liesen Editéieren

Deelen iwwer


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
Source:
AlgorithmIdentifier.cs

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

C#
public AlgorithmIdentifier();

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

.NET 10 (package-provided) an aner Versiounen
Produkt Versiounen
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

AlgorithmIdentifier(Oid)

Source:
AlgorithmIdentifier.cs
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.

C#
public AlgorithmIdentifier(System.Security.Cryptography.Oid 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

.NET 10 (package-provided) an aner Versiounen
Produkt Versiounen
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

AlgorithmIdentifier(Oid, Int32)

Source:
AlgorithmIdentifier.cs
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.

C#
public AlgorithmIdentifier(System.Security.Cryptography.Oid oid, int keyLength);

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

.NET 10 (package-provided) an aner Versiounen
Produkt Versiounen
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10