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 的对象是具有 hashAlgorithm 指定的哈希算法的 Oaep

例外

hashAlgorithmName 属性是 nullEmpty

适用于