From dcaea6ca89915c690f7a6e90c64d7b5963fa1f5c Mon Sep 17 00:00:00 2001
From: bg <bg@b1d182e4-1ff8-0310-901f-bddb46175740>
Date: Tue, 8 Aug 2006 22:09:56 +0000
Subject: [PATCH] +fixed some sha256 C stuff (more bugs are to search)

---
 Makefile | 2 +-
 sha256.c | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

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
 
 
-- 
2.39.5