OpenPgpContextIsEnabled(DigestAlgorithm) Method

Check whether the specified digest algorithm is enabled.

Definition

Namespace: MimeKit.Cryptography
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

Boolean
if 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.

See Also