Skip to content

Commit 8e3dde1

Browse files
Simplify struct initializer for SHA256 padding
Since missing elements are initialized with zeros, this change is purely syntactical.
1 parent eb28464 commit 8e3dde1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hash_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static void secp256k1_sha256_write(secp256k1_sha256 *hash, const unsigned char *
149149
}
150150

151151
static void secp256k1_sha256_finalize(secp256k1_sha256 *hash, unsigned char *out32) {
152-
static const unsigned char pad[64] = {0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
152+
static const unsigned char pad[64] = {0x80};
153153
uint32_t sizedesc[2];
154154
uint32_t out[8];
155155
int i = 0;

0 commit comments

Comments
 (0)