1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-08 14:51:10 +00:00

Enable unrolling of SHA512 with HMAC on NV

This commit is contained in:
jsteube 2016-05-08 16:07:40 +02:00
parent 7f04a89f77
commit 303cfcae15
17 changed files with 92 additions and 17 deletions

View File

@ -116,7 +116,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -116,7 +116,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -114,7 +114,12 @@ void sha512_transform (const u64x w0[4], const u64x w1[4], const u64x w2[4], con
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -115,7 +115,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -115,7 +115,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -115,7 +115,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -114,7 +114,12 @@ void sha512_transform (const u64 w0[4], const u64 w1[4], const u64 w2[4], const
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -114,7 +114,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -114,7 +114,7 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#pragma unroll
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -321,7 +321,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND512_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND512_EXPAND (); ROUND512_STEP (i);

View File

@ -1073,7 +1073,12 @@ void sha512_transform (const u64 w0[4], const u64 w1[4], const u64 w2[4], const
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -986,7 +986,7 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#pragma unroll
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -114,7 +114,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);

View File

@ -114,7 +114,12 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
ROUND_STEP (0);
//#pragma unroll
#ifdef IS_AMD
// #pragma unroll
// breaks compiler
#else
#pragma unroll
#endif
for (int i = 16; i < 80; i += 16)
{
ROUND_EXPAND (); ROUND_STEP (i);