Style fixes

1. Remove redundant extra lines.
2. Have the function parameters aligned.
3. Remove redundant white spaces.
pull/10907/head
Ron Eldor 2019-08-11 14:03:34 +03:00
parent a99ce834bd
commit d09e3ef3b4
1 changed files with 34 additions and 36 deletions

View File

@ -114,7 +114,6 @@ void mbedtls_aes_xts_free( mbedtls_aes_xts_context *ctx ){}
static int CC_aes_setkey( mbedtls_aes_context *ctx, const unsigned char *key,
unsigned int keybits, SaSiAesEncryptMode_t cipher_flag )
{
int ret = 0;
if( ctx == NULL )
return( MBEDTLS_ERR_AES_BAD_INPUT_DATA );
@ -136,7 +135,6 @@ static int CC_aes_setkey( mbedtls_aes_context *ctx, const unsigned char *key,
}
return( 0 );
}
int mbedtls_aes_setkey_enc( mbedtls_aes_context *ctx, const unsigned char *key,
unsigned int keybits )
@ -177,7 +175,7 @@ static int CC_aes_cipher( mbedtls_aes_context *ctx,
if( iv )
{
if( iv_len != SASI_AES_IV_SIZE_IN_BYTES )
return MBEDTLS_ERR_AES_INVALID_INPUT_LENGTH;
return( MBEDTLS_ERR_AES_INVALID_INPUT_LENGTH );
ret = SaSi_AesSetIv( &ctx->CC_Context, iv );
if( ret != 0 )
@ -304,7 +302,7 @@ int mbedtls_aes_crypt_ctr( mbedtls_aes_context *ctx,
*nc_off = ( length % SASI_AES_BLOCK_SIZE_IN_BYTES );
exit:
return ret;
return( ret );
}
#endif /* MBEDTLS_CIPHER_MODE_CTR */
#endif/* MBEDTLS_AES_ALT */