Skip to content

Commit f705643

Browse files
committed
fixed not using the tag as salt
1 parent 0e32baa commit f705643

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

PassCoder2.vcxproj.user

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@
33
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
44
<LocalDebuggerWorkingDirectory>$(SolutionDir)</LocalDebuggerWorkingDirectory>
55
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
6+
<LocalDebuggerCommandArguments>-v</LocalDebuggerCommandArguments>
67
</PropertyGroup>
78
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
89
<LocalDebuggerWorkingDirectory>$(SolutionDir)</LocalDebuggerWorkingDirectory>
910
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
11+
<LocalDebuggerCommandArguments>-v</LocalDebuggerCommandArguments>
1012
</PropertyGroup>
1113
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
1214
<LocalDebuggerWorkingDirectory>$(SolutionDir)</LocalDebuggerWorkingDirectory>
1315
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
16+
<LocalDebuggerCommandArguments>-v</LocalDebuggerCommandArguments>
1417
</PropertyGroup>
1518
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
1619
<LocalDebuggerWorkingDirectory>$(SolutionDir)</LocalDebuggerWorkingDirectory>
1720
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
21+
<LocalDebuggerCommandArguments>-v</LocalDebuggerCommandArguments>
1822
</PropertyGroup>
1923
</Project>

Sources/pc2_core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void pc2_hash_pass_process(pc2_hash_pass_t* r_hp)
6868
PC2_PARRALEL_COST,
6969
r_hp->input,
7070
r_hp->input_len,
71-
PC2_BASE_SALT,
71+
r_hp->salt,
7272
PC2_SALTLEN,
7373
r_hp->output,
7474
PC2_HASHLEN
@@ -85,6 +85,7 @@ pc2_hash_pass_t pc2_hash_pass_get_final(pc2_hash_pass_t* r_hp_passphrase, pc2_ha
8585
pc2_hash_pass_process(r_hp_tag);
8686
pc2_hash_pass_t final_hash = pc2_hash_pass_create_manually(r_hp_passphrase->output);
8787
pc2_hash_pass_set_salt(&final_hash, r_hp_tag->output);
88+
8889
pc2_hash_pass_process(&final_hash);
8990
return final_hash;
9091
}

0 commit comments

Comments
 (0)