OpenPgpContextEnable(DigestAlgorithm) Method

Enable the digest algorithm.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public void Enable(
	DigestAlgorithm algorithm
)

Parameters

algorithm  DigestAlgorithm
The digest algorithm.

Remarks

Enables the digest algorithm so that it is included in EnabledDigestAlgorithms.

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