]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - md5.c
+RC5 +size-statistics tool +small modification to nessie_bc_test (optional free(...
[avr-crypto-lib.git] / md5.c
diff --git a/md5.c b/md5.c
index 5ae22e60dbc1a4fc879caea2b684f895711efe45..5c7bb9a6d67af119ae3938dc03baa1cd73ae09ae 100644 (file)
--- a/md5.c
+++ b/md5.c
@@ -1,9 +1,10 @@
 /* 
- * File:       md5.h
- * Author:     Daniel Otte
- * Date:       31.07.2006
- * License: GPL
- * Description: Implementation of the MD5 hash algorithm as described in RFC 1321
+ * \file       md5.c
+ * \author     Daniel Otte
+ * \date       31.07.2006
+ * \par License:
+ * GPL
+ * \brief Implementation of the MD5 hash algorithm as described in RFC 1321
  * 
  */
 
@@ -119,7 +120,7 @@ void md5_lastBlock(md5_ctx_t *state, void* block, uint16_t length){
        while (length >= 512){
                md5_nextBlock(state, block);
                length -= 512;
-               block += 512/8;
+               block = ((uint8_t*)block) + 512/8;
        }
        memset(b, 0, 64);
        memcpy(b, block, length/8);