From 791cd5ec429811f1f679941c34ccca760cd57f00 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 28 Sep 2016 12:01:54 +0200 Subject: [PATCH] Fix some default masks --- src/interface.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/interface.c b/src/interface.c index 151d5bd10..0ef1db862 100644 --- a/src/interface.c +++ b/src/interface.c @@ -20562,12 +20562,24 @@ void hashconfig_benchmark_defaults (const hashconfig_t *hashconfig, salt_t *salt char *hashconfig_benchmark_mask (const hashconfig_t *hashconfig) { - char *mask = "?b?b?b?b?b?b?b"; + char *mask = NULL; switch (hashconfig->hash_mode) { + case 9710: mask = "?b?b?b?b?b"; + break; + case 9810: mask = "?b?b?b?b?b"; + break; + case 10410: mask = "?b?b?b?b?b"; + break; case 12500: mask = "?b?b?b?b?b"; break; + case 14000: mask = "?b?b?b?b?b?b?bx"; + break; + case 14100: mask = "?b?b?b?b?b?b?bx"; + break; + default: mask = "?b?b?b?b?b?b?b"; + break; } return mask;