Simplify struct initializer for SHA256 padding

Since missing elements are initialized with zeros, this change is
purely syntactical.
This commit is contained in:
Tim Ruffing 2020-03-31 13:55:30 +02:00
parent eb28464a8b
commit 8e3dde1137
1 changed files with 1 additions and 1 deletions

View File

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