Click or drag to resize
MimeKit

OpenPgpContextGetPublicKeyAlgorithm Method

Gets the equivalent PublicKeyAlgorithm for the specified PublicKeyAlgorithmTag.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static PublicKeyAlgorithm GetPublicKeyAlgorithm(
	PublicKeyAlgorithmTag algorithm
)

Parameters

algorithm  PublicKeyAlgorithmTag
The public-key algorithm.

Return Value

PublicKeyAlgorithm
The public-key algorithm.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionalgorithm is out of range.
NotSupportedExceptionalgorithm does not have an equivalent PublicKeyAlgorithm value.
Remarks
Gets the equivalent PublicKeyAlgorithm for the specified PublicKeyAlgorithmTag.
See Also