X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/76d211bbdf3a57afd72b3f3ac736c42cc17e3cac..46b0747592074017ff0ea4b33d4a7194235886e5:/stglibs/crypto.lib/include/stg/bfstream.h diff --git a/stglibs/crypto.lib/include/stg/bfstream.h b/stglibs/crypto.lib/include/stg/bfstream.h deleted file mode 100644 index bead8d00..00000000 --- a/stglibs/crypto.lib/include/stg/bfstream.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef __STG_STGLIBS_BF_STREAM_H__ -#define __STG_STGLIBS_BF_STREAM_H__ - -#include -#include // size_t - -namespace STG -{ - -class ENCRYPT_STREAM -{ - public: - typedef bool (* CALLBACK)(const void * block, size_t size, void * data); - - ENCRYPT_STREAM(const std::string & key, CALLBACK callback, void * data); - ~ENCRYPT_STREAM(); - void Put(const void * data, size_t size, bool last = false); - - bool isOk() const; - - private: - class IMPL; - - IMPL * m_impl; -}; - -class DECRYPT_STREAM -{ - public: - typedef bool (* CALLBACK)(const void * block, size_t size, void * data); - - DECRYPT_STREAM(const std::string & key, CALLBACK callback, void * data); - ~DECRYPT_STREAM(); - void Put(const void * data, size_t size, bool last = false); - - bool isOk() const; - - private: - class IMPL; - - IMPL * m_impl; -}; - -} // namespace STG - -#endif