Review corrections 2
-Fix MSVC compiler warnings about size_t to uint32_t conversions by
updating GET/PUT functions signature to use size_t.
-Add type casts to functions calling GET/PUT conversions
-Remove additional space after return statement
diff --git a/library/sha256.c b/library/sha256.c
index 1c1df02..314cb2c 100644
--- a/library/sha256.c
+++ b/library/sha256.c
@@ -199,7 +199,7 @@
for( i = 0; i < 64; i++ )
{
if( i < 16 )
- W[i] = mbedtls_platform_get_uint32_be( &data[4 * i] );
+ W[i] = (uint32_t)mbedtls_platform_get_uint32_be( &data[4 * i] );
else
R( i );
@@ -210,7 +210,7 @@
}
#else /* MBEDTLS_SHA256_SMALLER */
for( i = 0; i < 16; i++ )
- W[i] = mbedtls_platform_get_uint32_be( &data[4 * i] );
+ W[i] = (uint32_t)mbedtls_platform_get_uint32_be( &data[4 * i] );
for( i = 0; i < 16; i += 8 )
{