System::Security::Cryptography::SymmetricAlgorithm::CreateEncryptor 方法

SymmetricAlgorithm::CreateEncryptor() method

使用与算法对象关联的参数创建加密器。

virtual SharedPtr<ICryptoTransform> System::Security::Cryptography::SymmetricAlgorithm::CreateEncryptor()

ReturnValue

新创建的加密器对象。

另见

SymmetricAlgorithm::CreateEncryptor(System::ArrayPtr<uint8_t>, System::ArrayPtr<uint8_t>) method

使用显式参数创建加密器。

virtual SharedPtr<ICryptoTransform> System::Security::Cryptography::SymmetricAlgorithm::CreateEncryptor(System::ArrayPtr<uint8_t> rgbKey, System::ArrayPtr<uint8_t> rgbIV)=0
参数类型描述
rgbKeySystem::ArrayPtr<uint8_t>要使用的密钥。
rgbIVSystem::ArrayPtr<uint8_t>要使用的初始值。

ReturnValue

新创建的加密器对象。

另见