X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Common%2Frt%20api%2FRTI2Reader.h;h=d56ee8d916dde80d0b17fa897aad56da27341c4e;hb=47c71901e7a97c226c8f1df749e3606d43656f32;hp=200502804d70e8c696bfa0b8ea9cecf6c3719f26;hpb=08366be03fa6160b831222667a0c7f6df831f0d8;p=freerainbowtables diff --git a/Common/rt api/RTI2Reader.h b/Common/rt api/RTI2Reader.h index 2005028..d56ee8d 100644 --- a/Common/rt api/RTI2Reader.h +++ b/Common/rt api/RTI2Reader.h @@ -1,13 +1,39 @@ +/* + * freerainbowtables is a project for generating, distributing, and using + * perfect rainbow tables + * + * Copyright 2010, 2011 Martin Westergaard Jørgensen + * Copyright 2010, 2011 James Nobis + * + * This file is part of freerainbowtables. + * + * freerainbowtables is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * freerainbowtables is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with freerainbowtables. If not, see . + */ + #ifndef __RTI2READER_H__ #define __RTI2READER_H__ #include "Public.h" #include -#ifdef WIN32 -#include + +#if defined(_WIN32) && !defined(__GNUC__) + #include #endif + #include #include "BaseRTReader.h" + using namespace std; typedef struct @@ -22,19 +48,19 @@ class RTI2Reader : BaseRTReader { private: FILE *m_pFile; - unsigned int m_chainPosition; + uint32 m_chainPosition; unsigned char *m_pPos, *m_pChainPos; static RTI2Header *m_pHeader; unsigned char *m_pIndex; - unsigned int m_chainsizebytes; - unsigned int m_indexrowsizebytes; + uint32 m_chainsizebytes; + uint32 m_indexrowsizebytes; public: RTI2Reader(string Filename); ~RTI2Reader(void); - int ReadChains(unsigned int &numChains, RainbowChain *pData); - unsigned int GetChainsLeft(); + int ReadChains(uint32 &numChains, RainbowChain *pData); + uint32 GetChainsLeft(); static RTI2Header *GetHeader() { return m_pHeader; } };