1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 23:48:39 +00:00

Merge branch 'fix_m01800' of https://github.com/matrix/hashcat into matrix-fix_m01800

This commit is contained in:
jsteube 2016-11-28 10:42:59 +01:00
commit 2a5b2edfea

View File

@ -58,7 +58,7 @@ __constant u64 k_sha512[80] =
SHA512C4c, SHA512C4d, SHA512C4e, SHA512C4f,
};
void sha512_transform (const u64 *w, u64 *digest)
static void sha512_transform (const u64 *w, u64 *digest)
{
u64 w0_t = w[ 0];
u64 w1_t = w[ 1];
@ -146,7 +146,7 @@ void sha512_transform (const u64 *w, u64 *digest)
digest[7] += h;
}
void sha512_init (sha512_ctx_t *sha512_ctx)
static void sha512_init (sha512_ctx_t *sha512_ctx)
{
sha512_ctx->state[0] = SHA512M_A;
sha512_ctx->state[1] = SHA512M_B;
@ -160,7 +160,7 @@ void sha512_init (sha512_ctx_t *sha512_ctx)
sha512_ctx->len = 0;
}
void sha512_update (sha512_ctx_t *sha512_ctx, const u64 *buf, int len)
static void sha512_update (sha512_ctx_t *sha512_ctx, const u64 *buf, int len)
{
int pos = sha512_ctx->len & 0x7f;
@ -193,7 +193,7 @@ void sha512_update (sha512_ctx_t *sha512_ctx, const u64 *buf, int len)
}
}
void sha512_final (sha512_ctx_t *sha512_ctx)
static void sha512_final (sha512_ctx_t *sha512_ctx)
{
int pos = sha512_ctx->len & 0x7f;