Class AlgorithmIdentifier
A CMS AlgorithmIdentifier (RFC 5652 §10.1). Contains an algorithm OID and optional parameters (raw DER bytes).
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public sealed class AlgorithmIdentifier
Constructors
View SourceAlgorithmIdentifier(string)
Initializes a new instance of the AlgorithmIdentifier class with no parameters.
Declaration
public AlgorithmIdentifier(string oid)
Parameters
| Type | Name | Description |
|---|---|---|
| string | oid | The oid identifier. |
AlgorithmIdentifier(string, byte[]?)
Initializes a new instance of the AlgorithmIdentifier class.
Declaration
public AlgorithmIdentifier(string oid, byte[]? parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| string | oid | The oid identifier. |
| byte[] | parameters | Specifies the parameters value. |
Properties
View SourceHasParameters
Gets a value indicating whether parameters are present.
Declaration
public bool HasParameters { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Oid
Gets the algorithm OID.
Declaration
public string Oid { get; }
Property Value
| Type | Description |
|---|---|
| string |
Parameters
Gets the raw DER-encoded parameters, or null if absent.
Declaration
public byte[]? Parameters { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |