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/ctr_drbg.c b/library/ctr_drbg.c
index 2d83c6c..e14ccdd 100644
--- a/library/ctr_drbg.c
+++ b/library/ctr_drbg.c
@@ -152,10 +152,10 @@
* (Total is padded to a multiple of 16-bytes with zeroes)
*/
p = buf + MBEDTLS_CTR_DRBG_BLOCKSIZE;
- *p++ = BYTE_3( data_len );
- *p++ = BYTE_2( data_len );
- *p++ = BYTE_1( data_len );
- *p++ = BYTE_0( data_len );
+ *p++ = MBEDTLS_BYTE_3( data_len );
+ *p++ = MBEDTLS_BYTE_2( data_len );
+ *p++ = MBEDTLS_BYTE_1( data_len );
+ *p++ = MBEDTLS_BYTE_0( data_len );
p += 3;
*p++ = MBEDTLS_CTR_DRBG_SEEDLEN;
memcpy( p, data, data_len );