X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=md5.c;h=5c7bb9a6d67af119ae3938dc03baa1cd73ae09ae;hb=06a565f432ed3f51cbd9d88807b9860474c38938;hp=5ae22e60dbc1a4fc879caea2b684f895711efe45;hpb=24a9a8cfc423d4bfc2ce4b5fba8ebf5eb372938e;p=avr-crypto-lib.git diff --git a/md5.c b/md5.c index 5ae22e6..5c7bb9a 100644 --- 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);