共用方式為


RSAEncryptionPadding.CreateOaep(HashAlgorithmName) 方法

定義

建立新的 RSAEncryptionPadding 執行個體,其 ModeOaep 與指定的雜湊演算法。

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

參數

hashAlgorithm
HashAlgorithmName

雜湊演算法。

傳回

模式為 Mode 的物件是 Oaep其具有 hashAlgorithm 所指定的雜湊演算法。

例外狀況

hashAlgorithmName 屬性是 nullEmpty

適用於