CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
rijndael_managed.h
1
2#ifndef rijndael_managed_h
3#define rijndael_managed_h
4
5#include "rijndael.h"
6#include <defines.h>
7
8namespace System{ namespace Security{ namespace Cryptography{
9
15class ASPOSECPP_SHARED_CLASS RijndaelManaged : public Rijndael
16{
17public:
32
34 ASPOSECPP_SHARED_API void GenerateKey() override;
36 ASPOSECPP_SHARED_API void GenerateIV() override;
37
38private:
40 void check_implemented();
42 std::string calc_algo_spec(int keySize);
43
49 SharedPtr<ICryptoTransform> CreateTransformer(const System::ArrayPtr<uint8_t>& rgbKey, const System::ArrayPtr<uint8_t>& rgbIV, bool forEncryption);
50};
51
52}}} //namespace System{ namespace Security{ namespace Cryptography{
53
54#endif // rijndael_managed_h
Base class for Rijndael algorithm. Objects of this class should only be allocated using System::MakeO...
Definition: rijndael.h:14
Managed Rijndael algorithm. Only supports ECB and CFB modes with None padding and CBC mode with None ...
Definition: rijndael_managed.h:16
SharedPtr< ICryptoTransform > CreateDecryptor(System::ArrayPtr< uint8_t > rgbKey, System::ArrayPtr< uint8_t > rgbIV) override
Creates decryptor object with explicit parameters.
SharedPtr< ICryptoTransform > CreateEncryptor(System::ArrayPtr< uint8_t > rgbKey, System::ArrayPtr< uint8_t > rgbIV) override
Creates encryptor object with explicit parameters.
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.
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