Windows apps
Collapse the table of content
Expand the table of content
Information
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.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public:
static RSAEncryptionPadding^ CreateOaep(
	HashAlgorithmName hashAlgorithm
)

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
Return to top
Show:
© 2017 Microsoft