Files
core/ASCOfficeXlsFile2/source/XlsFormat/Crypt/Crypt.h
Elen.Subbotina 1746479d34 XlsFile2
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63565 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:15:16 +03:00

28 lines
398 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