Browse Source

fix wrong renaming

Kolja Strohm 1 month ago
parent
commit
aa3201c226
2 changed files with 8 additions and 6 deletions
  1. 2 2
      Key.cpp
  2. 6 4
      Key.h

+ 2 - 2
Key.cpp

@@ -156,7 +156,7 @@ void Key::setKey(const char* s, int len)
     this->length = len;
 }
 
-void Key::encode2(Bytes* daten)
+void Key::encode(Bytes* daten)
 {
     if (!key || !length)
     {
@@ -175,7 +175,7 @@ void Key::encode2(Bytes* daten)
     daten->release();
 }
 
-void Key::decode2(Bytes* daten)
+void Key::decode(Bytes* daten)
 {
     if (!key || !length)
     {

+ 6 - 4
Key.h

@@ -35,7 +35,8 @@ namespace Framework
             //! \param daten The bytes to copy
             //! \param length The length of the array
             DLLEXPORT void setBytes(const char* daten, int length);
-            //! Deletes the array and takes ownership of the given one without copying
+            //! Deletes the array and takes ownership of the given one without
+            //! copying
             //! \param daten The new byte array
             //! \param length The length of the array
             DLLEXPORT void setBytesZ(char* daten, int length);
@@ -46,7 +47,8 @@ namespace Framework
             //! \param c The value to set the bytes to
             //! \param len The number of bytes to set
             DLLEXPORT void fill(const char c, int len);
-            //! Sets a specific section of bytes of the array to a specific value
+            //! Sets a specific section of bytes of the array to a specific
+            //! value
             //! \param c The value to set the bytes to
             //! \param beg The start position of the section to set
             //! \param end The end position of the section to set (exclusive)
@@ -90,10 +92,10 @@ namespace Framework
             DLLEXPORT void setKey(const char* s, int length);
             //! Encrypts a byte array with the set key
             //! \param daten The byte array to encrypt. Modified by the function
-            DLLEXPORT void encode2(Bytes* daten);
+            DLLEXPORT void encode(Bytes* daten);
             //! Decrypts a byte array with the set key
             //! \param daten The byte array to decrypt. Modified by the function
-            DLLEXPORT void decode2(Bytes* daten);
+            DLLEXPORT void decode(Bytes* daten);
         };
     } // namespace Encryption
 } // namespace Framework