]> git.sesse.net Git - freerainbowtables/blobdiff - Common/rt api/RTReader.cpp
(C)
[freerainbowtables] / Common / rt api / RTReader.cpp
index 7fec6672c4caea50520166bab31e9ef8f6f3297a..9c005583b67585869e2f978f151572a211092a9a 100644 (file)
@@ -1,3 +1,26 @@
+/*
+ * freerainbowtables is a project for generating, distributing, and using
+ * perfect rainbow tables
+ *
+ * Copyright 2010, 2011 Martin Westergaard Jørgensen <martinwj2005@gmail.com>
+ * Copyright 2010, 2011 James Nobis <frt@quelrod.net>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
 #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;
 }