<PackageReference Include="System.Security.Cryptography.Pkcs" Version="11.0.0-preview.5.26302.115" />

System.Security.Cryptography.Pkcs.AlgorithmIdentifier

public sealed class AlgorithmIdentifier
The AlgorithmIdentifier class defines the algorithm used for a cryptographic operation.
public int KeyLength { get; set; }

The KeyLength property sets or retrieves the key length, in bits. This property is not used for algorithms that use a fixed key length.

public Oid Oid { get; set; }

The Oid property sets or retrieves the Oid object that specifies the object identifier for the algorithm.

public byte[] Parameters { get; set; }

The Parameters property sets or retrieves any parameters required by the algorithm.

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

The #ctor constructor creates an instance of the AlgorithmIdentifier class with the specified algorithm identifier.

public AlgorithmIdentifier(Oid oid, int keyLength)

The #ctor constructor creates an instance of the AlgorithmIdentifier class with the specified algorithm identifier and key length.