Blob Blame Raw
#ifndef CRYPT_H
#define CRYPT_H


#include <vector>

#include "common.h"



class Crypt {
private:
	class Private;
	Private *priv;
	
public:
	Crypt();
	~Crypt();
	
	bool setKey(const char *key);
	void resetKey();
	
	void setTime(Time time, Time qwant);
	
	bool encrypt(const void *src, int srcSize, void *dst, int &dstSize);
	bool decrypt(const void *src, int srcSize, void *dst, int &dstSize);
	
	unsigned int random();
};


#endif