AlgorithmIdentifier(Oid, Byte) Constructor

Initializes a new instance of the AlgorithmIdentifier class from an algorithm object identifier and, optionally, algorithm parameters.

Definition

Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public AlgorithmIdentifier(
	Oid oid,
	byte[] parameters
)

Parameters

oid  Oid
Algorithm object identifier.
parameters  Byte
A ASN.1-encoded byte array that represents algorithm parameters. This parameter can be NULL.

Remarks

For signature algorithm identifiers you often add explicit parameters. If there are no explicit parameters (such as when RSA-based signature is used) you should pass empty array in parameters parameter. When explicit parameters are not used (such as when hashing or other algorithm group), you must pass null value to parameters parameter.

Exceptions

ArgumentNullExceptionoid parameter is null.

See Also