OpenPgpContextGetPublicKeyAlgorithm Method

Gets the equivalent PublicKeyAlgorithm for the specified PublicKeyAlgorithmTag.

Definition

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

Parameters

algorithm  PublicKeyAlgorithmTag
The public-key algorithm.

Return Value

PublicKeyAlgorithm
The public-key algorithm.

Remarks

Gets the equivalent PublicKeyAlgorithm for the specified PublicKeyAlgorithmTag.

Exceptions

ArgumentOutOfRangeException algorithm is out of range.
NotSupportedException algorithm does not have an equivalent PublicKeyAlgorithm value.

See Also