Commit 5c4ef8ee authored by James Morris's avatar James Morris Committed by David S. Miller

[CRYPTO]: Make padding[] array static in sha{256,512}_final().

Also happens to work around a GCC bug.
parent e2a5a63a
......@@ -295,7 +295,7 @@ static void sha256_final(void* ctx, u8 *out)
u8 bits[8];
unsigned int index, pad_len, t;
int i, j;
const u8 padding[64] = { 0x80, };
static u8 padding[64] = { 0x80, };
/* Save number of bits */
t = sctx->count[0];
......
......@@ -249,7 +249,7 @@ sha512_final(void *ctx, u8 *hash)
{
struct sha512_ctx *sctx = ctx;
const static u8 padding[128] = { 0x80, };
static u8 padding[128] = { 0x80, };
u32 t;
u64 t2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment