From c4efd0f4235d1151a95add06ad5ccb42c7dcff21 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 8 Apr 2020 08:57:15 +0300 Subject: *: Do not cast to the same type Signed-off-by: Donatas Abraitis --- lib/md5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/md5.c') diff --git a/lib/md5.c b/lib/md5.c index 9c003a3af6..5c93c7bc1f 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -429,7 +429,7 @@ void hmac_md5(unsigned char *text, int text_len, unsigned char *key, * pass */ MD5Update(&context, k_ipad, 64); /* start with inner pad */ MD5Update(&context, text, text_len); /* then text of datagram */ - MD5Final((uint8_t *)digest, &context); /* finish up 1st pass */ + MD5Final(digest, &context); /* finish up 1st pass */ /* * perform outer MD5 */ @@ -438,5 +438,5 @@ void hmac_md5(unsigned char *text, int text_len, unsigned char *key, MD5Update(&context, k_opad, 64); /* start with outer pad */ MD5Update(&context, digest, 16); /* then results of 1st * hash */ - MD5Final((uint8_t *)digest, &context); /* finish up 2nd pass */ + MD5Final(digest, &context); /* finish up 2nd pass */ } -- cgit v1.2.3