| 1 | /* |
| 2 | * |
| 3 | * Ophcrack is a Lanmanager/NTLM hash cracker based on the faster time-memory |
| 4 | * trade-off using rainbow tables. |
| 5 | * |
| 6 | * Created with the help of: Maxime Mueller, Luca Wullschleger, Claude |
| 7 | * Hochreutiner, Andreas Huber and Etienne Dysli. |
| 8 | * |
| 9 | * Copyright (c) 2008 Philippe Oechslin, Cedric Tissieres, Bertrand Mesot |
| 10 | * |
| 11 | * Ophcrack is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation; either version 2 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * Ophcrack is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with Ophcrack; if not, write to the Free Software |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 24 | * |
| 25 | * This program is released under the GPL with the additional exemption |
| 26 | * that compiling, linking, and/or using OpenSSL is allowed. |
| 27 | * |
| 28 | * |
| 29 | * |
| 30 | * |
| 31 | */ |
| 32 | #ifndef OPHSTAT_H |
| 33 | #define OPHSTAT_H |
| 34 | |
| 35 | #include <stdint.h> |
| 36 | |
| 37 | #include "list.h" |
| 38 | |
| 39 | #ifdef __cplusplus |
| 40 | extern "C" { |
| 41 | #endif |
| 42 | |
| 43 | typedef struct ophstat_t_ { |
| 44 | uint64_t hredux; |
| 45 | uint64_t prefix; |
| 46 | uint64_t postfix; |
| 47 | uint64_t start; |
| 48 | uint64_t fseek_idx; |
| 49 | uint64_t fseek_end; |
| 50 | uint64_t fseek_srt; |
| 51 | uint64_t falarm; |
| 52 | uint64_t falarm_hredux; |
| 53 | uint64_t match_table; |
| 54 | uint64_t match_bforce; |
| 55 | uint32_t length[16]; |
| 56 | uint32_t category[16]; |
| 57 | list_t *time; |
| 58 | } ophstat_t; |
| 59 | |
| 60 | ophstat_t *ophstat_alloc(void); |
| 61 | void ophstat_free(ophstat_t *stat); |
| 62 | void ophstat_add(ophstat_t *stat1, ophstat_t *stat2); |
| 63 | void ophstat_reset(ophstat_t *stat); |
| 64 | |
| 65 | #ifdef __cplusplus |
| 66 | } |
| 67 | #endif |
| 68 | #endif |