X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=sha256%2Fsha256.h;fp=sha256%2Fsha256.h;h=03f3a148328a0dfe0c64b965a75bf1326285b480;hp=78704f57590f441851001e05756ec8c102a8dd3c;hb=8d9f80e5ae0d940107681aff616f4466be68c77f;hpb=a49bff0095d7fae6c24ec953a03ef349839eff60 diff --git a/sha256/sha256.h b/sha256/sha256.h index 78704f5..03f3a14 100644 --- a/sha256/sha256.h +++ b/sha256/sha256.h @@ -49,9 +49,9 @@ */ #define SHA256_HASH_BITS 256 -#define SHA256_HASH_BYTES (SHA256_HASH_BITS/8) +#define SHA256_HASH_BYTES (SHA256_HASH_BITS / 8) #define SHA256_BLOCK_BITS 512 -#define SHA256_BLOCK_BYTES (SHA256_BLOCK_BITS/8) +#define SHA256_BLOCK_BYTES (SHA256_BLOCK_BITS / 8) /** \typedef sha256_ctx_t * \brief SHA-256 context type @@ -60,7 +60,7 @@ */ typedef struct { uint32_t h[8]; - uint64_t length; + uint32_t length; } sha256_ctx_t; /** \typedef sha256_hash_t