mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +00:00
hv: use uint8_t replace "unsigned char"
Since it's typedef in "include/lib/types.h" Tracked-On: #861 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -32,14 +32,14 @@
|
||||
* Wrappers for generic message digests
|
||||
*/
|
||||
|
||||
static int sha256_update_wrap( void *ctx, const unsigned char *input,
|
||||
static int sha256_update_wrap( void *ctx, const uint8_t *input,
|
||||
size_t ilen )
|
||||
{
|
||||
return( mbedtls_sha256_update_ret( (mbedtls_sha256_context *) ctx,
|
||||
input, ilen ) );
|
||||
}
|
||||
|
||||
static int sha256_finish_wrap( void *ctx, unsigned char *output )
|
||||
static int sha256_finish_wrap( void *ctx, uint8_t *output )
|
||||
{
|
||||
return( mbedtls_sha256_finish_ret( (mbedtls_sha256_context *) ctx,
|
||||
output ) );
|
||||
@@ -51,7 +51,7 @@ static void sha256_clone_wrap( void *dst, const void *src )
|
||||
(const mbedtls_sha256_context *) src );
|
||||
}
|
||||
|
||||
static int sha256_process_wrap( void *ctx, const unsigned char *data )
|
||||
static int sha256_process_wrap( void *ctx, const uint8_t *data )
|
||||
{
|
||||
return( mbedtls_internal_sha256_process( (mbedtls_sha256_context *) ctx,
|
||||
data ) );
|
||||
@@ -62,8 +62,8 @@ static int sha256_starts_wrap( void *ctx )
|
||||
return( mbedtls_sha256_starts_ret( (mbedtls_sha256_context *) ctx, 0 ) );
|
||||
}
|
||||
|
||||
static int sha256_wrap( const unsigned char *input, size_t ilen,
|
||||
unsigned char *output )
|
||||
static int sha256_wrap( const uint8_t *input, size_t ilen,
|
||||
uint8_t *output )
|
||||
{
|
||||
return( mbedtls_sha256_ret( input, ilen, output, 0 ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user