X-Git-Url: https://git.sesse.net/?p=freerainbowtables;a=blobdiff_plain;f=Common%2Frt%20api%2FRTReader.cpp;h=9c005583b67585869e2f978f151572a211092a9a;hp=7fec6672c4caea50520166bab31e9ef8f6f3297a;hb=47c71901e7a97c226c8f1df749e3606d43656f32;hpb=3d42602c1f746b5768f0e6c9d22884a9806eadc0 diff --git a/Common/rt api/RTReader.cpp b/Common/rt api/RTReader.cpp index 7fec667..9c00558 100644 --- a/Common/rt api/RTReader.cpp +++ b/Common/rt api/RTReader.cpp @@ -1,3 +1,26 @@ +/* + * 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 . + */ + #include "RTReader.h" RTReader::RTReader(string Filename) @@ -9,14 +32,14 @@ RTReader::~RTReader(void) { } -int RTReader::ReadChains(unsigned int &numChains, RainbowChain *pData) +int RTReader::ReadChains(uint32 &numChains, RainbowChain *pData) { unsigned int numRead = fread(pData, 1, 16 * numChains, m_pFile); numChains = numRead / 16; m_chainPosition += numChains; return 0; } -UINT4 RTReader::GetChainsLeft() +uint32 RTReader::GetChainsLeft() { return (GetFileLen(m_pFile) / 16) - m_chainPosition; }