1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-06-26 01:42:36 +00:00

Update s_lookup/s_lookup_optimized tables

This commit is contained in:
Gabriele Gristina 2024-11-02 00:21:33 +01:00
parent b3def20527
commit d37d26de74
2 changed files with 42 additions and 20 deletions

View File

@ -30,16 +30,27 @@
CONSTANT_AS u8 s_lookup[128] = CONSTANT_AS u8 s_lookup[128] =
{ {
[0 ... 31] = 0, // control characters // 0-31: control characters (0)
[32] = 1, // whitespace 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[33 ... 47] = 1, // from '!' to '/' 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[48 ... 57] = 0, // digits // 32: whitespace (1)
[58 ... 64] = 1, // from ':' to '@' 1,
[65 ... 90] = 0, // uppercase // 33-47: punctuation (1)
[91 ... 96] = 1, // from '[' to '`' 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
[97 ... 122] = 0, // lowercase // 48-57: digits (0)
[123 ... 126] = 1, // from '{' to '~' 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[127] = 0 // del // 58-64: punctuation (1)
1, 1, 1, 1, 1, 1, 1,
// 65-90: uppercase letters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 91-96: punctuation (1)
1, 1, 1, 1, 1, 1,
// 97-122: lowercase letters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 123-126: punctuation (1)
1, 1, 1, 1,
// 127: DEL (0)
0
}; };
HC_INLINE bool is_l (u8 c) HC_INLINE bool is_l (u8 c)

View File

@ -15,16 +15,27 @@
CONSTANT_AS u8 s_lookup_optimized[128] = CONSTANT_AS u8 s_lookup_optimized[128] =
{ {
[0 ... 31] = 0, // control characters // 0-31: control characters (0)
[32] = 1, // whitespace 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[33 ... 47] = 1, // from '!' to '/' 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[48 ... 57] = 0, // digits // 32: whitespace (1)
[58 ... 64] = 1, // from ':' to '@' 1,
[65 ... 90] = 0, // uppercase // 33-47: punctuation (1)
[91 ... 96] = 1, // from '[' to '`' 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
[97 ... 122] = 0, // lowercase // 48-57: digits (0)
[123 ... 126] = 1, // from '{' to '~' 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[127] = 0 // del // 58-64: punctuation (1)
1, 1, 1, 1, 1, 1, 1,
// 65-90: uppercase letters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 91-96: punctuation (1)
1, 1, 1, 1, 1, 1,
// 97-122: lowercase letters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 123-126: punctuation (1)
1, 1, 1, 1,
// 127: DEL (0)
0
}; };
HC_INLINE bool is_l (u8 c) HC_INLINE bool is_l (u8 c)