123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #ifndef Key_H
- #define Key_H
- #include "Betriebssystem.h"
- namespace Framework
- {
- namespace Encryption
- {
-
- class Bytes
- {
- private:
- char *bytes;
- bool del;
- int length;
- int ref;
- 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;
-
-
- DLLEXPORT Bytes *getThis();
-
-
- DLLEXPORT Bytes *release();
- };
-
- class Key
- {
- private:
- unsigned char *key;
- int length;
- int pos;
- int ref;
- 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 );
-
-
- DLLEXPORT Key *getThis();
-
-
- DLLEXPORT Key *release();
- };
- }
- }
- #endif
|