aes_encryptor.h | aes_encryptor.h | |||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
#include <gcrypt.h> | #include <gcrypt.h> | |||
#include "encryptor.h" | #include "encryptor.h" | |||
namespace cppcms { | namespace cppcms { | |||
namespace aes { | namespace aes { | |||
class cipher : public encryptor { | class cipher : public encryptor { | |||
gcry_cipher_hd_t hd_out; | gcry_cipher_hd_t hd_out; | |||
gcry_cipher_hd_t hd_in; | gcry_cipher_hd_t hd_in; | |||
gcry_md_hd_t hd_mac; | ||||
struct aes_hdr { | struct aes_hdr { | |||
char salt[16]; | char salt[16]; | |||
char md5[16]; | time_t timeout; | |||
unsigned size; | ||||
}; | }; | |||
public: | public: | |||
virtual std::string encrypt(std::string const &plain,time_t timeout) ; | virtual std::string encrypt(std::string const &plain,time_t timeout) ; | |||
virtual bool decrypt(std::string const &cipher,std::string &plain,ti me_t *timeout=NULL) ; | virtual bool decrypt(std::string const &cipher,std::string &plain,ti me_t *timeout=NULL) ; | |||
cipher(std::string key); | cipher(std::string key); | |||
~cipher(); | ~cipher(); | |||
}; | }; | |||
} // aes | } // aes | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added | |||
config.h | config.h | |||
---|---|---|---|---|
skipping to change at line 89 | skipping to change at line 89 | |||
/* Name of package */ | /* Name of package */ | |||
#define PACKAGE "cppcms" | #define PACKAGE "cppcms" | |||
/* Define to the address where bug reports for this package should be sent. */ | /* Define to the address where bug reports for this package should be sent. */ | |||
#define PACKAGE_BUGREPORT "artyomtnk@yahoo.com" | #define PACKAGE_BUGREPORT "artyomtnk@yahoo.com" | |||
/* Define to the full name of this package. */ | /* Define to the full name of this package. */ | |||
#define PACKAGE_NAME "cppcms" | #define PACKAGE_NAME "cppcms" | |||
/* Define to the full name and version of this package. */ | /* Define to the full name and version of this package. */ | |||
#define PACKAGE_STRING "cppcms 0.0.7" | #define PACKAGE_STRING "cppcms 0.0.8" | |||
/* Define to the one symbol short name of this package. */ | /* Define to the one symbol short name of this package. */ | |||
#define PACKAGE_TARNAME "cppcms" | #define PACKAGE_TARNAME "cppcms" | |||
/* Define to the version of this package. */ | /* Define to the version of this package. */ | |||
#define PACKAGE_VERSION "0.0.7" | #define PACKAGE_VERSION "0.0.8" | |||
/* Define to 1 if you have the ANSI C header files. */ | /* Define to 1 if you have the ANSI C header files. */ | |||
#define STDC_HEADERS 1 | #define STDC_HEADERS 1 | |||
/* "Use boost::asio" */ | /* "Use boost::asio" */ | |||
/* #undef USE_BOOST_ASIO */ | /* #undef USE_BOOST_ASIO */ | |||
/* Version number of package */ | /* Version number of package */ | |||
#define VERSION "0.0.7" | #define VERSION "0.0.8" | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||