Open Pgp ContextDisable(Digest Algorithm) Method
Disable the digest algorithm.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public void Disable(
DigestAlgorithm algorithm
)Parameters
- algorithm DigestAlgorithm
- The digest algorithm.
Remarks
Disables the digest algorithm so that it is excluded from 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.