Use faster byteswapping and avoid alignment-increasing casts.

This commit is contained in:
Pieter Wuille
2015-02-22 05:54:56 -08:00
parent 0bada0e2a9
commit ae55e850c7
3 changed files with 44 additions and 55 deletions

View File

@@ -12,7 +12,7 @@
typedef struct {
uint32_t s[32];
unsigned char buf[64];
uint32_t buf[16]; /* In big endian */
size_t bytes;
} secp256k1_sha256_t;