CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
triple_des_managed.h
1
2#ifndef _aspose_security_cryptography_triple_des_managed_h_
3#define _aspose_security_cryptography_triple_des_managed_h_
4
5#include <security/cryptography/triple_des.h>
6
7#include <defines.h>
8
9namespace System { namespace Security { namespace Cryptography {
10
16class ASPOSECPP_SHARED_CLASS TripleDESManaged : public TripleDES
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#endif
virtual SharedPtr< ICryptoTransform > CreateDecryptor()
Creates decryptor with parameters associated with algorithm object.
virtual SharedPtr< ICryptoTransform > CreateEncryptor()
Creates encryptor with parameters associated with algorithm object.
Triple Data Encryption Standard algorithm base class. Objects of this class should only be allocated ...
Definition: triple_des.h:14
Managed TripleDES implementation. Only supports ECB and CFB modes with None padding and CBC mode with...
Definition: triple_des_managed.h:17
void GenerateKey() override
Creates random key 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.
void GenerateIV() override
Creates random initial value and stores it in algorithm's internals.
SharedPtr< ICryptoTransform > CreateDecryptor(System::ArrayPtr< uint8_t > rgbKey, System::ArrayPtr< uint8_t > rgbIV) override
Creates decryptor object with explicit parameters.
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