Rsa Encryption PaddingCreate Oaep 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
An RsaEncryptionPadding using Oaep and the specified hash algorithm.
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
RsaEncryptionPaddingAn 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. |