Fix kernel build warnings (no previous prototypes and/or incompatible function parameters ...

pull/667/head
Gabriele Gristina 8 years ago
parent 646a47236c
commit 92a3760117

@ -38,7 +38,7 @@ __constant u64 k_sha512[80] =
SHA512C4c, SHA512C4d, SHA512C4e, SHA512C4f,
};
void sha512_transform (const u64 w[16], u64 dgst[8])
static void sha512_transform (const u64 w[16], u64 dgst[8])
{
u64 a = dgst[0];
u64 b = dgst[1];
@ -126,7 +126,7 @@ void sha512_transform (const u64 w[16], u64 dgst[8])
dgst[7] += h;
}
void hmac_run (const u64 w1[16], const u64 ipad[8], const u64 opad[8], u64 dgst[8])
static void hmac_run (const u64 w1[16], const u64 ipad[8], const u64 opad[8], u64 dgst[8])
{
dgst[0] = ipad[0];
dgst[1] = ipad[1];
@ -170,7 +170,7 @@ void hmac_run (const u64 w1[16], const u64 ipad[8], const u64 opad[8], u64 dgst[
sha512_transform (w, dgst);
}
void hmac_run_x (const u64 ipad[8], const u64 opad[8], u64 dgst[8])
static void hmac_run_x (const u64 ipad[8], const u64 opad[8], u64 dgst[8])
{
u64 w[16];
@ -223,7 +223,7 @@ void hmac_run_x (const u64 ipad[8], const u64 opad[8], u64 dgst[8])
sha512_transform (w, dgst);
}
void hmac_init (u64 w[16], u64 ipad[8], u64 opad[8])
static void hmac_init (u64 w[16], u64 ipad[8], u64 opad[8])
{
w[ 0] ^= 0x3636363636363636;
w[ 1] ^= 0x3636363636363636;

Loading…
Cancel
Save