Prefixed macros with MBEDTLS
As per tests/scripts/check-names.sh, macros in
library/ header files should be prefixed with
MBEDTLS_
The macro functions in common.h where also indented
to comply with the same test
Signed-off-by: Joe Subbiani <joe.subbiani@arm.com>
diff --git a/library/des.c b/library/des.c
index 36ea277..9281747 100644
--- a/library/des.c
+++ b/library/des.c
@@ -400,8 +400,8 @@
int i;
uint32_t X, Y, T;
- GET_UINT32_BE( X, key, 0 );
- GET_UINT32_BE( Y, key, 4 );
+ MBEDTLS_GET_UINT32_BE( X, key, 0 );
+ MBEDTLS_GET_UINT32_BE( Y, key, 4 );
/*
* Permuted Choice 1
@@ -610,8 +610,8 @@
SK = ctx->sk;
- GET_UINT32_BE( X, input, 0 );
- GET_UINT32_BE( Y, input, 4 );
+ MBEDTLS_GET_UINT32_BE( X, input, 0 );
+ MBEDTLS_GET_UINT32_BE( Y, input, 4 );
DES_IP( X, Y );
@@ -623,8 +623,8 @@
DES_FP( Y, X );
- PUT_UINT32_BE( Y, output, 0 );
- PUT_UINT32_BE( X, output, 4 );
+ MBEDTLS_PUT_UINT32_BE( Y, output, 0 );
+ MBEDTLS_PUT_UINT32_BE( X, output, 4 );
return( 0 );
}
@@ -697,8 +697,8 @@
SK = ctx->sk;
- GET_UINT32_BE( X, input, 0 );
- GET_UINT32_BE( Y, input, 4 );
+ MBEDTLS_GET_UINT32_BE( X, input, 0 );
+ MBEDTLS_GET_UINT32_BE( Y, input, 4 );
DES_IP( X, Y );
@@ -722,8 +722,8 @@
DES_FP( Y, X );
- PUT_UINT32_BE( Y, output, 0 );
- PUT_UINT32_BE( X, output, 4 );
+ MBEDTLS_PUT_UINT32_BE( Y, output, 0 );
+ MBEDTLS_PUT_UINT32_BE( X, output, 4 );
return( 0 );
}