diff --git a/mbedtls-sys/vendor/include/mbedtls/sha512.h b/mbedtls-sys/vendor/include/mbedtls/sha512.h index 4a8ab425..e43d8f4e 100644 --- a/mbedtls-sys/vendor/include/mbedtls/sha512.h +++ b/mbedtls-sys/vendor/include/mbedtls/sha512.h @@ -142,7 +142,7 @@ int mbedtls_sha512_update_ret( mbedtls_sha512_context *ctx, * \return A negative error code on failure. */ int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx, - unsigned char output[64] ); + unsigned char *output ); /** * \brief This function processes a single data block within @@ -255,7 +255,7 @@ MBEDTLS_DEPRECATED void mbedtls_sha512_process( */ int mbedtls_sha512_ret( const unsigned char *input, size_t ilen, - unsigned char output[64], + unsigned char *output, int is384 ); #if !defined(MBEDTLS_DEPRECATED_REMOVED) diff --git a/mbedtls-sys/vendor/library/sha512.c b/mbedtls-sys/vendor/library/sha512.c index 06a628ae..bac7a4a1 100644 --- a/mbedtls-sys/vendor/library/sha512.c +++ b/mbedtls-sys/vendor/library/sha512.c @@ -404,7 +404,7 @@ void mbedtls_sha512_update( mbedtls_sha512_context *ctx, * SHA-512 final digest */ int mbedtls_sha512_finish_ret( mbedtls_sha512_context *ctx, - unsigned char output[64] ) + unsigned char *output ) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; unsigned used; @@ -485,7 +485,7 @@ void mbedtls_sha512_finish( mbedtls_sha512_context *ctx, */ int mbedtls_sha512_ret( const unsigned char *input, size_t ilen, - unsigned char output[64], + unsigned char *output, int is384 ) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;