mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 05:24:10 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64116 954022d7-b5bf-4e40-9824-e11837661b57
28 lines
397 B
C++
28 lines
397 B
C++
#pragma once
|
|
|
|
#include <boost/shared_ptr.hpp>
|
|
|
|
namespace CRYPT
|
|
{
|
|
|
|
class Crypt
|
|
{
|
|
public:
|
|
|
|
virtual void Encrypt(char* data, const size_t size) = 0;
|
|
virtual void Decrypt(char* data, const size_t size, const unsigned long stream_pos) = 0;
|
|
|
|
typedef enum
|
|
{
|
|
RC4,
|
|
RC4CryptoAPI,
|
|
XOR
|
|
} crypt_type;
|
|
|
|
};
|
|
|
|
typedef boost::shared_ptr<Crypt> CryptPtr;
|
|
|
|
|
|
} // namespace CRYPT
|