1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-05-31 21:28:48 +00:00
This commit is contained in:
jsteube 2016-11-14 10:50:47 +01:00
parent 59730fb908
commit 91a69fa635
2 changed files with 46 additions and 58 deletions

View File

@ -207,3 +207,13 @@
#endif #endif
#endif #endif
// apple specific
#ifdef IS_APPLE
#if KERN_TYPE == 5000
#undef _unroll
#endif
#endif

View File

@ -191,38 +191,27 @@ void m05000m (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __gl
t = st[1]; t = st[1];
Rho_Pi (0); #ifdef _unroll
Rho_Pi (1); #pragma unroll
Rho_Pi (2); #else
Rho_Pi (3); #pragma unroll 1
Rho_Pi (4); #endif
Rho_Pi (5); for (int i = 0; i < 24; i++)
Rho_Pi (6); {
Rho_Pi (7); Rho_Pi (i);
Rho_Pi (8); }
Rho_Pi (9);
Rho_Pi (10);
Rho_Pi (11);
Rho_Pi (12);
Rho_Pi (13);
Rho_Pi (14);
Rho_Pi (15);
Rho_Pi (16);
Rho_Pi (17);
Rho_Pi (18);
Rho_Pi (19);
Rho_Pi (20);
Rho_Pi (21);
Rho_Pi (22);
Rho_Pi (23);
// Chi // Chi
Chi (0); #ifdef _unroll
Chi (5); #pragma unroll
Chi (10); #else
Chi (15); #pragma unroll 1
Chi (20); #endif
for (int i = 0; i < 25; i += 5)
{
Chi (i);
}
// Iota // Iota
@ -377,38 +366,27 @@ void m05000s (u32 w0[4], u32 w1[4], u32 w2[4], u32 w3[4], const u32 pw_len, __gl
t = st[1]; t = st[1];
Rho_Pi (0); #ifdef _unroll
Rho_Pi (1); #pragma unroll
Rho_Pi (2); #else
Rho_Pi (3); #pragma unroll 1
Rho_Pi (4); #endif
Rho_Pi (5); for (int i = 0; i < 24; i++)
Rho_Pi (6); {
Rho_Pi (7); Rho_Pi (i);
Rho_Pi (8); }
Rho_Pi (9);
Rho_Pi (10);
Rho_Pi (11);
Rho_Pi (12);
Rho_Pi (13);
Rho_Pi (14);
Rho_Pi (15);
Rho_Pi (16);
Rho_Pi (17);
Rho_Pi (18);
Rho_Pi (19);
Rho_Pi (20);
Rho_Pi (21);
Rho_Pi (22);
Rho_Pi (23);
// Chi // Chi
Chi (0); #ifdef _unroll
Chi (5); #pragma unroll
Chi (10); #else
Chi (15); #pragma unroll 1
Chi (20); #endif
for (int i = 0; i < 25; i += 5)
{
Chi (i);
}
// Iota // Iota