diff --git a/src/modules/module_29100.c b/src/modules/module_29100.c index b54a01e01..5d55bbdbc 100644 --- a/src/modules/module_29100.c +++ b/src/modules/module_29100.c @@ -93,10 +93,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE if (parse_rc == false) return (PARSER_SALT_LENGTH); - memcpy (salt->salt_buf, line_buf, salt_len); - u8 tmp_buf[100] = { 0 }; const int decoded_len = base64_decode (base64url_to_int, hash_pos, hash_len, tmp_buf); @@ -138,7 +136,6 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE ptr_plain[27] = 0; - const int line_len = snprintf (line_buf, line_size, "%s.%s", (char *) salt->salt_buf, (char *) ptr_plain); return line_len; diff --git a/src/modules/module_29200.c b/src/modules/module_29200.c index 70553b2d6..874f5c907 100644 --- a/src/modules/module_29200.c +++ b/src/modules/module_29200.c @@ -110,7 +110,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE if (rc_tokenizer != PARSER_OK) return (rc_tokenizer); - // user name: if ((token.len[1] % 2) != 0) return (PARSER_SALT_LENGTH); @@ -132,7 +131,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE esalt->user[i] = byte_swap_32 (esalt->user[i]); } - // salt (for salted SHA1): if ((token.len[2] % 2) != 0) return (PARSER_SALT_LENGTH); @@ -150,7 +148,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE salt->salt_buf[i] = byte_swap_32 (salt->salt_buf[i]); } - // verifier: if ((token.len[3] % 2) != 0) return (PARSER_SALT_LENGTH); @@ -170,7 +167,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE salt->salt_buf_pc[i] = byte_swap_32 (t2); } - // digest // convert our verifier to Montgomery form (s.t. we avoid converting it back on GPU): @@ -184,7 +180,6 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE digest[2] = dgst[2]; digest[3] = dgst[3]; - /* * pre-computed values for BigNum exponentiation: */