mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-15 20:39:17 +00:00
Fix kernel build warnings (no previous prototypes and/or incompatible function parameters ...
This commit is contained in:
parent
646a47236c
commit
543d85c3f8
@ -23,7 +23,7 @@ typedef struct
|
|||||||
|
|
||||||
} RC4_KEY;
|
} RC4_KEY;
|
||||||
|
|
||||||
void swap (__local RC4_KEY *rc4_key, const u8 i, const u8 j)
|
static void swap (__local RC4_KEY *rc4_key, const u8 i, const u8 j)
|
||||||
{
|
{
|
||||||
u8 tmp;
|
u8 tmp;
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ void swap (__local RC4_KEY *rc4_key, const u8 i, const u8 j)
|
|||||||
rc4_key->S[j] = tmp;
|
rc4_key->S[j] = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
|
static void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
|
||||||
{
|
{
|
||||||
u32 v = 0x03020100;
|
u32 v = 0x03020100;
|
||||||
u32 a = 0x04040404;
|
u32 a = 0x04040404;
|
||||||
@ -85,7 +85,7 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, const u32 in[4], u32 out[4])
|
static u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, const u32 in[4], u32 out[4])
|
||||||
{
|
{
|
||||||
#ifdef _unroll
|
#ifdef _unroll
|
||||||
#pragma unroll
|
#pragma unroll
|
||||||
@ -138,7 +138,7 @@ u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, const u32 in[4], u32 out[4
|
|||||||
return j;
|
return j;
|
||||||
}
|
}
|
||||||
|
|
||||||
void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], const u32 w3[4], u32 digest[4])
|
static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], const u32 w3[4], u32 digest[4])
|
||||||
{
|
{
|
||||||
u32 a = digest[0];
|
u32 a = digest[0];
|
||||||
u32 b = digest[1];
|
u32 b = digest[1];
|
||||||
@ -236,7 +236,7 @@ void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], const u32
|
|||||||
digest[3] += d;
|
digest[3] += d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gen336 (u32 digest_pre[4], u32 salt_buf[4], u32 digest[4])
|
static void gen336 (u32 digest_pre[4], u32 salt_buf[4], u32 digest[4])
|
||||||
{
|
{
|
||||||
u32 digest_t0[2];
|
u32 digest_t0[2];
|
||||||
u32 digest_t1[2];
|
u32 digest_t1[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user