Use $HEX[...] in case the password includes the separater character, increases potfile reading performance

This commit is contained in:
jsteube
2016-12-09 14:54:13 +01:00
parent 1be98add82
commit 1342cf2ce3
8 changed files with 174 additions and 169 deletions

View File

@@ -79,7 +79,6 @@ but this is nededed for VS compiler which doesn't have inline keyword but has __
#define SPEED_MAXAGE 4096
#define BLOCK_SIZE 64
#define EXPECTED_ITERATIONS 10000
#define MAX_CUT_TRIES 4
#if defined (_WIN)
#define EOL "\r\n"

View File

@@ -8,7 +8,7 @@
#include <ctype.h>
bool need_hexify (const u8 *buf, const int len, bool always_ascii);
bool need_hexify (const u8 *buf, const int len, const char separator, bool always_ascii);
void exec_hexify (const u8 *buf, const int len, u8 *out);
bool is_valid_hex_char (const u8 c);