Skip to content

Commit

Permalink
TrueCrypt cpu formats: use constant in non-simd build to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyCherepanov authored and solardiz committed May 29, 2022
1 parent 014ce22 commit 0678d47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/truecrypt_fmt_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,15 +460,17 @@ static int decrypt_and_verify(unsigned char *key, int algorithm)

static int crypt_all(int *pcount, struct db_salt *salt)
{
int i, inner_batch_size = 1;
int i;
const int count = *pcount;

#if SSE_GROUP_SZ_SHA512
#define INNER_BATCH_MAX_SZ SSE_GROUP_SZ_SHA512
int inner_batch_size = 1;
if (psalt->hash_type == IS_SHA512)
inner_batch_size = SSE_GROUP_SZ_SHA512;
#else
#define INNER_BATCH_MAX_SZ 1
#define inner_batch_size 1
#endif

memset(cracked, 0, sizeof(cracked[0]) * count);
Expand Down

0 comments on commit 0678d47

Please sign in to comment.