Fix unitialized use of W[16]. (#1662)
Signed-off-by: lns <matzeton@googlemail.com>
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ sha256_init(sha256_t *p)
|
|||||||
static void
|
static void
|
||||||
sha256_transform(uint32_t *state, const uint32_t *data)
|
sha256_transform(uint32_t *state, const uint32_t *data)
|
||||||
{
|
{
|
||||||
uint32_t W[16];
|
uint32_t W[16] = {};
|
||||||
unsigned j;
|
unsigned j;
|
||||||
#ifdef _SHA256_UNROLL2
|
#ifdef _SHA256_UNROLL2
|
||||||
uint32_t a,b,c,d,e,f,g,h;
|
uint32_t a,b,c,d,e,f,g,h;
|
||||||
|
|||||||
Reference in New Issue
Block a user