]> 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 3c520edf3df83af410753fc16f8dea7fa62c2659..5c7bb9a6d67af119ae3938dc03baa1cd73ae09ae 100644 (file)
--- a/md5.c
+++ b/md5.c
@@ -120,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);