RsaEncryptionPaddingCreateOaep Method

Create a new RsaEncryptionPadding using Oaep and the specified hash algorithm.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public static RsaEncryptionPadding CreateOaep(
	DigestAlgorithm hashAlgorithm
)

Parameters

hashAlgorithm  DigestAlgorithm
The hash algorithm.

Return Value

RsaEncryptionPadding
An RsaEncryptionPadding using Oaep and the specified hash algorithm.

Remarks

Creates a new RsaEncryptionPadding using Oaep and the specified hash algorithm.

Exceptions

NotSupportedException The hashAlgorithm is not supported.

See Also