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: