From: bg Date: Tue, 8 Aug 2006 22:09:56 +0000 (+0000) Subject: +fixed some sha256 C stuff (more bugs are to search) X-Git-Url: https://git.cryptolib.org/?a=commitdiff_plain;h=dcaea6ca89915c690f7a6e90c64d7b5963fa1f5c;p=avr-crypto-lib.git +fixed some sha256 C stuff (more bugs are to search) --- diff --git a/Makefile b/Makefile index d902738..66043fa 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ CC = avr-gcc override CFLAGS = -Wall -Wstrict-prototypes $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) override LDFLAGS = -Wl,-Map,$(PRG).map -override ASFLAGS = -mmcu=$(MCU_TARGET) +override ASFLAGS = -mmcu=$(MCU_TARGET) OBJCOPY = avr-objcopy OBJDUMP = avr-objdump diff --git a/sha256.c b/sha256.c index f90dba8..524b1dd 100644 --- a/sha256.c +++ b/sha256.c @@ -164,7 +164,6 @@ void sha256(sha256_hash_t *dest, void* msg, uint32_t length){ /* length could be -#ifdef sha256_ctx2hash_in_C void sha256_ctx2hash(sha256_hash_t *dest, sha256_ctx_t *state){ #if defined LITTLE_ENDIAN uint8_t i; @@ -178,6 +177,5 @@ void sha256_ctx2hash(sha256_hash_t *dest, sha256_ctx_t *state){ # error unsupported endian type! #endif } -#endif