Fix whitespace

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2022-11-24 19:44:52 +00:00
parent 069e7f462a
commit 4b910c1ed1
2 changed files with 4 additions and 4 deletions

View file

@ -48,7 +48,7 @@ static inline uint32_t mbedtls_get_unaligned_uint32( void const *p )
*/
static inline void mbedtls_put_unaligned_uint32( void *p, uint32_t x )
{
memcpy(p, &x, 4);
memcpy( p, &x, 4 );
}
/** Byte Reading Macros

View file

@ -89,10 +89,10 @@ extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const c
inline void mbedtls_xor( unsigned char *r, unsigned char const *a, unsigned char const *b, size_t n )
{
size_t i;
for ( i = 0; (i + 4) < n; i+= 4 )
for ( i = 0; ( i + 4 ) < n; i+= 4 )
{
uint32_t x = mbedtls_get_unaligned_uint32(a + i) ^ mbedtls_get_unaligned_uint32(b + i);
mbedtls_put_unaligned_uint32(r + i, x);
uint32_t x = mbedtls_get_unaligned_uint32( a + i ) ^ mbedtls_get_unaligned_uint32( b + i );
mbedtls_put_unaligned_uint32( r + i, x );
}
for ( ; i < n; i++ )
{