RSAEncryptionPadding.CreateOaep(HashAlgorithmName) 方法

定義

建立 RSAEncryptionPadding 一個新實例,該 Mode 實例與給定雜湊演算法相 Oaep 符。

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

例外狀況

NamehashAlgorithm性質為nullEmpty或為。

適用於