Open Pgp ContextGet Public Key Algorithm Method
Gets the equivalent PublicKeyAlgorithm for the specified
PublicKeyAlgorithmTag.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The public-key algorithm.
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
PublicKeyAlgorithmThe 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. |