CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
rc2_managed.h
1
2#ifndef _aspose_security_cryptography_rc2_managed_h_
3#define _aspose_security_cryptography_rc2_managed_h_
4
5#include <security/cryptography/rc2.h>
6
7#include <defines.h>
8
9namespace System { namespace Security { namespace Cryptography {
10
16class ASPOSECPP_SHARED_CLASS RC2Managed : public RC2
17{
18public:
33
35 ASPOSECPP_SHARED_API void GenerateKey() override;
37 ASPOSECPP_SHARED_API void GenerateIV() override;
38
39private:
41 void check_implemented();
43 std::string calc_algo_spec();
44
50 SharedPtr<ICryptoTransform> CreateTransformer(const System::ArrayPtr<uint8_t>& rgbKey, const System::ArrayPtr<uint8_t>& rgbIV, bool forEncryption);
51};
52
53}}}
54
55
56#endif
RC2 symmetric algorithm base class. Objects of this class should only be allocated using System::Make...
Definition: rc2.h:14
Managed RC2 algorithm. Only ECB, CFB and CBC cipher modes are supported. Objects of this class should...
Definition: rc2_managed.h:17
void GenerateKey() override
Creates random key and stores it in algorithm's internals.
void GenerateIV() override
Creates random initial value and stores it in algorithm's internals.
SharedPtr< ICryptoTransform > CreateEncryptor(System::ArrayPtr< uint8_t > rgbKey, System::ArrayPtr< uint8_t > rgbIV) override
Creates encryptor object with explicit parameters.
SharedPtr< ICryptoTransform > CreateDecryptor(System::ArrayPtr< uint8_t > rgbKey, System::ArrayPtr< uint8_t > rgbIV) override
Creates decryptor object with explicit parameters.
virtual SharedPtr< ICryptoTransform > CreateDecryptor()
Creates decryptor with parameters associated with algorithm object.
virtual SharedPtr< ICryptoTransform > CreateEncryptor()
Creates encryptor with parameters associated with algorithm object.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9