Files
core/ASCOfficeXlsFile2/source/XlsFormat/Crypt/Crypt.h
ElenaSubbotina 27c67d0aa4 DocFormatReader - анализ зашифрованности файла
XlsFormatReader - чтение зашифрованных файлов (введен параметр password на вход)
2016-05-21 01:37:43 +03:00

31 lines
449 B
C++

#pragma once
#include <string>
#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;
virtual bool IsVerify() = 0;
};
typedef boost::shared_ptr<Crypt> CryptPtr;
} // namespace CRYPT