⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bench.h

📁 著名的解Unix密码的源程序
💻 H
字号:
/* * This file is part of John the Ripper password cracker, * Copyright (c) 1996-98 by Solar Designer *//* * Cracking algorithm benchmark. */#ifndef _JOHN_BENCH_H#define _JOHN_BENCH_H#include <time.h>#include "arch.h"#include "formats.h"/* * Structure used to return benchmark results. */struct bench_results {/* Elapsed real and processor time */	clock_t real, virtual;/* Number of passwords tried */	unsigned ARCH_WORD count;};/* * Benchmarks the supplied cracking algorithm. Returns zero on success, a * positive value if the self test fails or there's no self test for this * algorithm, or a negative value if aborted. */extern int benchmark_format(struct fmt_main *format, int salts,	struct bench_results *results);/* * Converts benchmarked c/s into an ASCII string. */extern void benchmark_cps(unsigned ARCH_WORD count, clock_t time,	char *buffer);/* * Benchmarks all the registered cracking algorithms and prints the results * to stdout. */extern void benchmark_all();#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -