Open Pgp ContextIs Enabled(Digest Algorithm) Method
Check whether the specified digest algorithm is enabled.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
if the specified digest algorithm is enabled; otherwise, .
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public bool IsEnabled(
DigestAlgorithm algorithm
)Parameters
- algorithm DigestAlgorithm
- The digest algorithm.
Return Value
Booleanif the specified digest algorithm is enabled; otherwise, .
Remarks
Determines whether the specified digest algorithm is enabled.
Enabled digest algorithms are advertised as the preferred hash algorithms of newly generated keys. Enabling or disabling a digest algorithm does not affect which digest algorithms may be used to sign or verify messages.