blob: 770248f87e91e4efd5b9f3faa21f004222cf39d9 [file] [log] [blame]
#pragma once
#include "BlockCipher.h"
//----------------------------------------------------------------------------
class XTEACipher : public BlockCipher
{
public:
int getBlockSize ( void ) { return 8; }
void setKey ( void * key, int keySize );
void encrypt ( void * block, unsigned int nonce ) const;
void decrypt ( void * block, unsigned int nonce ) const;
protected:
uint32_t m_key[4];
};
//----------------------------------------------------------------------------