Editare

Partajați prin


RSAEncryptionPadding.CreateOaep(HashAlgorithmName) Method

Definition

Creates a new RSAEncryptionPadding instance whose Mode is Oaep with the given hash algorithm.

public:
 static System::Security::Cryptography::RSAEncryptionPadding ^ CreateOaep(System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public static System.Security.Cryptography.RSAEncryptionPadding CreateOaep (System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
static member CreateOaep : System.Security.Cryptography.HashAlgorithmName -> System.Security.Cryptography.RSAEncryptionPadding
Public Shared Function CreateOaep (hashAlgorithm As HashAlgorithmName) As RSAEncryptionPadding

Parameters

hashAlgorithm
HashAlgorithmName

The hash algorithm.

Returns

An object whose mode is Mode is Oaep with the hash algorithm specified by hashAlgorithm.

Exceptions

The Name property of hashAlgorithm is either null or Empty.

Applies to