PbeParameters(PbeEncryptionAlgorithm, HashAlgorithmName, Int32) 构造函数

定义

初始化 PbeParameters 类的新实例。Initializes a new instance of the PbeParameters class.

public:
 PbeParameters(System::Security::Cryptography::PbeEncryptionAlgorithm encryptionAlgorithm, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, int iterationCount);
public PbeParameters (System.Security.Cryptography.PbeEncryptionAlgorithm encryptionAlgorithm, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int iterationCount);
new System.Security.Cryptography.PbeParameters : System.Security.Cryptography.PbeEncryptionAlgorithm * System.Security.Cryptography.HashAlgorithmName * int -> System.Security.Cryptography.PbeParameters
Public Sub New (encryptionAlgorithm As PbeEncryptionAlgorithm, hashAlgorithm As HashAlgorithmName, iterationCount As Integer)

参数

encryptionAlgorithm
PbeEncryptionAlgorithm

加密数据时要使用的算法。The algorithm to use when encrypting data.

hashAlgorithm
HashAlgorithmName

与密钥派生功能 (KDF) 结合使用的哈希算法的名称,用于将密码转换为加密密钥。The name of a hash algorithm to use with the Key Derivation Function (KDF) to turn a password into an encryption key.

iterationCount
Int32

向密钥派生功能 (KDF) 提供的迭代计数,用于将密码转换为加密密钥。The iteration count to provide to the Key Derivation Function (KDF) to turn a password into an encryption key.

例外

iterationCount 小于 1。iterationCount is less than 1.

适用于