Skip to content

Commit bb3db0d

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

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
@@ -148,7 +148,7 @@ static void secp256k1_sha256_write(secp256k1_sha256 *hash, const unsigned char *
148148
}
149149

150150
static void secp256k1_sha256_finalize(secp256k1_sha256 *hash, unsigned char *out32) {
151-
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};
151+
static const unsigned char pad[64] = {0x80};
152152
uint32_t sizedesc[2];
153153
uint32_t out[8];
154154
int i = 0;

0 commit comments

Comments
 (0)