The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
RSAEncryptionPadding::CreateOaep Method (HashAlgorithmName)
Creates a new RSAEncryptionPadding instance whose Mode is RSAEncryptionPaddingMode::Oaep with the given hash algorithm.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- hashAlgorithm
-
Type:
System.Security.Cryptography::HashAlgorithmName
The hash algorithm.
Return Value
Type: System.Security.Cryptography::RSAEncryptionPadding^An object whose mode is Mode is RSAEncryptionPaddingMode::Oaep with the hash algorithm specified by hashAlgorithm. .
| Exception | Condition |
|---|---|
| ArgumentException | The Name property of hashAlgorithm is either null or String::Empty. |
.NET Framework
Available since 4.6
Available since 4.6
Show: