.. index:: pair: class; EE::System::RC4 .. _doxid-class_e_e_1_1_system_1_1_r_c4: class EE::System::RC4 ===================== .. toctree:: :hidden: struct_EE_System_RC4_RC4Key.rst Overview ~~~~~~~~ :ref:`RC4 ` Encryption Class. For more information check Wikipedia: `http://en.wikipedia.org/wiki/RC4 `__. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class RC4 { public: // structs struct :ref:`RC4Key`; // construction :target:`~RC4`(); // methods void :ref:`setKey`(const :ref:`Uint8`* key, :ref:`Uint32` size); void :ref:`setKey`(const std::vector<:ref:`Uint8`>& Key); void :ref:`setKey`(const std::string& Key); void :ref:`encryptByte`(:ref:`Uint8`* data, :ref:`Uint32` size); void :ref:`encryptByte`(std::vector<:ref:`Uint8`>& buffer); void :ref:`decryptByte`(std::vector<:ref:`Uint8`>& buffer); void :ref:`encryptString`(std::string& buffer); void :ref:`decryptString`(std::string& buffer); bool :ref:`encryptFile`(const std::string& SourceFile, const std::string& DestFile); bool :ref:`decryptFile`(const std::string& SourceFile, const std::string& DestFile); }; .. _details-class_e_e_1_1_system_1_1_r_c4: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ :ref:`RC4 ` Encryption Class. For more information check Wikipedia: `http://en.wikipedia.org/wiki/RC4 `__. Methods ------- .. index:: pair: function; setKey .. _doxid-class_e_e_1_1_system_1_1_r_c4_1a38276566a9cf1c583a5c701deaf119b7: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setKey(const :ref:`Uint8`* key, :ref:`Uint32` size) Set the encryption Key. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - key - the key data * - size - the key size .. index:: pair: function; setKey .. _doxid-class_e_e_1_1_system_1_1_r_c4_1ac1a245f6ac74029659d818319b4af0eb: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setKey(const std::vector<:ref:`Uint8`>& Key) Set the encryption Key. .. index:: pair: function; setKey .. _doxid-class_e_e_1_1_system_1_1_r_c4_1ac63b8398575b4ce564684f5aa617203c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setKey(const std::string& Key) Set the encryption Key. .. index:: pair: function; encryptByte .. _doxid-class_e_e_1_1_system_1_1_r_c4_1acf8747612e54b8e34073ac0b3952adc8: .. ref-code-block:: cpp :class: doxyrest-title-code-block void encryptByte(:ref:`Uint8`* data, :ref:`Uint32` size) Encrypt the buffer ( you must set the key first ). .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - data - The buffer to encrypt * - size - The buffer size .. index:: pair: function; encryptByte .. _doxid-class_e_e_1_1_system_1_1_r_c4_1ab49023f9b6b59f881755610a72d99e2c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void encryptByte(std::vector<:ref:`Uint8`>& buffer) Encrypt a vector of bytes ( you must set the key first ). .. index:: pair: function; decryptByte .. _doxid-class_e_e_1_1_system_1_1_r_c4_1ae1ed686e046718b7c24a8db667eb95b5: .. ref-code-block:: cpp :class: doxyrest-title-code-block void decryptByte(std::vector<:ref:`Uint8`>& buffer) Decrypt a vector of bytes ( you must set the key first ). .. index:: pair: function; encryptString .. _doxid-class_e_e_1_1_system_1_1_r_c4_1ab73f224036a58e2216aa345885a28068: .. ref-code-block:: cpp :class: doxyrest-title-code-block void encryptString(std::string& buffer) Encrypt a string ( you must set the key first ). .. index:: pair: function; decryptString .. _doxid-class_e_e_1_1_system_1_1_r_c4_1a7f21165cd2e4392868071c19f7264b4c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void decryptString(std::string& buffer) Decrypt a string ( you must set the key first ). .. index:: pair: function; encryptFile .. _doxid-class_e_e_1_1_system_1_1_r_c4_1a652b3257335bda9b8f487823adb3037a: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool encryptFile(const std::string& SourceFile, const std::string& DestFile) Encrypt a file ( you must set the key first ). .. index:: pair: function; decryptFile .. _doxid-class_e_e_1_1_system_1_1_r_c4_1aa2755747f2d2f812069b0e666e2ba43f: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool decryptFile(const std::string& SourceFile, const std::string& DestFile) Decrypt a file ( you must set the key first ).