]> git.cryptolib.org Git - avr-crypto-lib.git/commitdiff
+fixed some sha256 C stuff (more bugs are to search)
authorbg <bg@b1d182e4-1ff8-0310-901f-bddb46175740>
Tue, 8 Aug 2006 22:09:56 +0000 (22:09 +0000)
committerbg <bg@b1d182e4-1ff8-0310-901f-bddb46175740>
Tue, 8 Aug 2006 22:09:56 +0000 (22:09 +0000)
Makefile
sha256.c

index d9027384f0563ae2be944e8a3a6af4d49673a73e..66043fa4771b696764b157c751bdee3cbda6c72f 100644 (file)
--- 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
index f90dba8f81acd1013ffbc88fff2cd47ff2f38306..524b1dd2eee05085bd669839833586baddec9e81 100644 (file)
--- 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