123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- #ifndef Key_H
- #define Key_H
- #include "Betriebssystem.h"
- #include "ReferenceCounter.h"
- namespace Framework
- {
- namespace Encryption
- {
-
- class Bytes : public virtual ReferenceCounter
- {
- private:
- char* bytes;
- bool del;
- int length;
- public:
-
- DLLEXPORT Bytes();
-
-
- DLLEXPORT Bytes(int length);
-
-
-
- DLLEXPORT Bytes(const char* daten, int length);
-
- DLLEXPORT ~Bytes();
-
-
- DLLEXPORT void setBytes(const char* daten);
-
-
-
- DLLEXPORT void setBytes(const char* daten, int length);
-
-
-
- DLLEXPORT void setBytesZ(char* daten, int length);
-
-
- DLLEXPORT void fill(const char c);
-
-
-
-
- DLLEXPORT void fill(const char c, int len);
-
-
-
-
-
- DLLEXPORT void fill(const char c, int beg, int end);
-
-
-
- DLLEXPORT void fill(const char* c, int cLength);
-
-
-
- DLLEXPORT void set(const char c, int pos);
-
- DLLEXPORT int getLength() const;
-
- DLLEXPORT char* getBytes() const;
- };
-
-
- class Key : public virtual ReferenceCounter
- {
- private:
- unsigned char* key;
- int length;
- int pos;
- public:
-
- DLLEXPORT Key();
-
-
-
- DLLEXPORT Key(const char* s, int length);
-
- DLLEXPORT ~Key();
-
-
-
- DLLEXPORT void setPos(__int64 p);
-
-
-
- DLLEXPORT void setKey(const char* s, int length);
-
-
-
- DLLEXPORT void codieren(Bytes* daten);
-
-
-
- DLLEXPORT void decodieren(Bytes* daten);
- };
- }
- }
- #endif
|