X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Common%2Frt%20api%2FPublic.h;h=b3103f7d3dda3cedba6f0f9037081448af467967;hb=df8d800454d70f0fb39ab0c227ca55f91b581da7;hp=3a315ae56fc55db6d886d1f52d7c386118156704;hpb=963077c6f02f39f00ce8f9a92f17d857efc707b5;p=freerainbowtables diff --git a/Common/rt api/Public.h b/Common/rt api/Public.h index 3a315ae..b3103f7 100644 --- a/Common/rt api/Public.h +++ b/Common/rt api/Public.h @@ -1,24 +1,41 @@ /* - RainbowCrack - a general propose implementation of Philippe Oechslin's faster time-memory trade-off technique. - - Copyright (C) Zhu Shuanglei -*/ + * freerainbowtables is a project for generating, distributing, and using + * perfect rainbow tables + * + * Copyright (C) Zhu Shuanglei + * Copyright 2009, 2010 Daniël Niggebrugge + * Copyright 2009, 2010 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 _PUBLIC_H #define _PUBLIC_H #include +#include +#include #include #include #include -using namespace std; -#ifdef _WIN32 - #define uint64 unsigned __int64 -#else - #define uint64 u_int64_t -#endif +#include "global.h" + +using namespace std; struct RainbowChain { @@ -35,8 +52,8 @@ struct RainbowChainCP struct IndexChain { uint64 nPrefix; - int nFirstChain; - unsigned int nChainCount; + UINT4 nFirstChain; + UINT4 nChainCount; }; struct FoundRainbowChain { @@ -77,6 +94,7 @@ string uint64tostr(uint64 n); string uint64tohexstr(uint64 n); string HexToStr(const unsigned char* pData, int nLen); unsigned int GetAvailPhysMemorySize(); +string GetApplicationPath(); void ParseHash(string sHash, unsigned char* pHash, int& nHashLen); bool GetHybridCharsets(string sCharset, vector& vCharset); void Logo();