mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-05-11 20:02:08 +00:00
md.c: Avoid overly long lines
This commit is contained in:
parent
3a98eab2c4
commit
3f7d270c18
48
library/md.c
48
library/md.c
|
@ -795,13 +795,15 @@ MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_block_size(
|
|||
return( info->block_size );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_starts( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_starts(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx )
|
||||
{
|
||||
return( info->starts_func( ctx ) );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_update( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_update(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx,
|
||||
const unsigned char *input,
|
||||
size_t ilen )
|
||||
|
@ -809,14 +811,16 @@ MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_update( mbedtls_md_handl
|
|||
return( info->update_func( ctx, input, ilen ) );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_finish( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_finish(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx,
|
||||
unsigned char *output )
|
||||
{
|
||||
return( info->finish_func( ctx, output ) );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_digest( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_digest(
|
||||
mbedtls_md_handle_t info,
|
||||
const unsigned char *input,
|
||||
size_t ilen,
|
||||
unsigned char *output )
|
||||
|
@ -824,25 +828,29 @@ MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_digest( mbedtls_md_handl
|
|||
return( info->digest_func( input, ilen, output ) );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline void* mbedtls_md_info_ctx_alloc( mbedtls_md_handle_t info )
|
||||
MBEDTLS_ALWAYS_INLINE static inline void* mbedtls_md_info_ctx_alloc(
|
||||
mbedtls_md_handle_t info )
|
||||
{
|
||||
return( info->ctx_alloc_func() );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_md_info_ctx_free( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_md_info_ctx_free(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx )
|
||||
{
|
||||
info->ctx_free_func( ctx );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_md_info_clone( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_md_info_clone(
|
||||
mbedtls_md_handle_t info,
|
||||
void *dst,
|
||||
const void *src )
|
||||
{
|
||||
info->clone_func( dst, src );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_process( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_process(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx,
|
||||
const unsigned char *input )
|
||||
{
|
||||
|
@ -879,14 +887,16 @@ MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_block_size(
|
|||
return( MBEDTLS_MD_INFO_BLOCKSIZE( MBEDTLS_MD_SINGLE_HASH ) );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_starts( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_starts(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx )
|
||||
{
|
||||
((void) info);
|
||||
return( MBEDTLS_MD_INFO_STARTS_FUNC( MBEDTLS_MD_SINGLE_HASH )( ctx ) );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_update( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_update(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx,
|
||||
const unsigned char *input,
|
||||
size_t ilen )
|
||||
|
@ -896,7 +906,8 @@ MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_update( mbedtls_md_handl
|
|||
( ctx, input, ilen ) );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_finish( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_finish(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx,
|
||||
unsigned char *output )
|
||||
{
|
||||
|
@ -905,7 +916,8 @@ MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_finish( mbedtls_md_handl
|
|||
( ctx, output ) );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_digest( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_digest(
|
||||
mbedtls_md_handle_t info,
|
||||
const unsigned char *input,
|
||||
size_t ilen,
|
||||
unsigned char *output )
|
||||
|
@ -915,20 +927,23 @@ MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_digest( mbedtls_md_handl
|
|||
( input, ilen, output ) );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline void* mbedtls_md_info_ctx_alloc( mbedtls_md_handle_t info )
|
||||
MBEDTLS_ALWAYS_INLINE static inline void* mbedtls_md_info_ctx_alloc(
|
||||
mbedtls_md_handle_t info )
|
||||
{
|
||||
((void) info);
|
||||
return( MBEDTLS_MD_INFO_ALLOC_FUNC( MBEDTLS_MD_SINGLE_HASH )() );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_md_info_ctx_free( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_md_info_ctx_free(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx )
|
||||
{
|
||||
((void) info);
|
||||
MBEDTLS_MD_INFO_FREE_FUNC( MBEDTLS_MD_SINGLE_HASH )( ctx );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_md_info_clone( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline void mbedtls_md_info_clone(
|
||||
mbedtls_md_handle_t info,
|
||||
void *dst,
|
||||
const void *src )
|
||||
{
|
||||
|
@ -936,7 +951,8 @@ MBEDTLS_ALWAYS_INLINE static inline void mbedtls_md_info_clone( mbedtls_md_handl
|
|||
MBEDTLS_MD_INFO_CLONE_FUNC( MBEDTLS_MD_SINGLE_HASH )( dst, src );
|
||||
}
|
||||
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_process( mbedtls_md_handle_t info,
|
||||
MBEDTLS_ALWAYS_INLINE static inline int mbedtls_md_info_process(
|
||||
mbedtls_md_handle_t info,
|
||||
void *ctx,
|
||||
const unsigned char *input )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue