Blame crypt.h

c47604
#ifndef CRYPT_H
c47604
#define CRYPT_H
c47604
c47604
c47604
#include <vector></vector>
c47604
c47604
#include "common.h"
c47604
c47604
c47604
c47604
class Crypt {
c47604
private:
0f653b
	class Private;
0f653b
	Private *priv;
c47604
	
c47604
public:
c47604
	Crypt();
c47604
	~Crypt();
c47604
	
c47604
	bool setKey(const char *key);
c47604
	void resetKey();
c47604
	
0f653b
	void setTime(Time time, Time qwant);
c47604
	
c47604
	bool encrypt(const void *src, int srcSize, void *dst, int &dstSize);
c47604
	bool decrypt(const void *src, int srcSize, void *dst, int &dstSize);
0f653b
	
0f653b
	unsigned int random();
c47604
};
c47604
c47604
c47604
#endif