|
32 | 32 | if((actual) != (expected)) \
|
33 | 33 | { \
|
34 | 34 | mbedtls_printf( "\tassertion failed at %s:%d - " \
|
35 |
| - "actual:%" PRId32 "expected:%" PRId32 "\r\n", \ |
| 35 | + "actual:%" PRId32 "expected:%" PRId32 "\n", \ |
36 | 36 | __FILE__, __LINE__, \
|
37 | 37 | (psa_status_t) actual, (psa_status_t) expected ); \
|
38 | 38 | goto exit; \
|
|
44 | 44 | !defined(MBEDTLS_CIPHER_MODE_WITH_PADDING)
|
45 | 45 | int main(void)
|
46 | 46 | {
|
47 |
| - mbedtls_printf("Not all of the required options are defined:\r\n" |
48 |
| - " - MBEDTLS_PSA_CRYPTO_C\r\n" |
49 |
| - " - MBEDTLS_AES_C\r\n" |
50 |
| - " - MBEDTLS_CIPHER_MODE_CBC\r\n" |
51 |
| - " - MBEDTLS_CIPHER_MODE_CTR\r\n" |
52 |
| - " - MBEDTLS_CIPHER_MODE_WITH_PADDING\r\n"); |
| 47 | + mbedtls_printf("Not all of the required options are defined:\n" |
| 48 | + " - MBEDTLS_PSA_CRYPTO_C\n" |
| 49 | + " - MBEDTLS_AES_C\n" |
| 50 | + " - MBEDTLS_CIPHER_MODE_CBC\n" |
| 51 | + " - MBEDTLS_CIPHER_MODE_CTR\n" |
| 52 | + " - MBEDTLS_CIPHER_MODE_WITH_PADDING\n"); |
53 | 53 | return 0;
|
54 | 54 | }
|
55 | 55 | #else
|
@@ -309,22 +309,22 @@ static void cipher_examples(void)
|
309 | 309 | {
|
310 | 310 | psa_status_t status;
|
311 | 311 |
|
312 |
| - mbedtls_printf("cipher encrypt/decrypt AES CBC no padding:\r\n"); |
| 312 | + mbedtls_printf("cipher encrypt/decrypt AES CBC no padding:\n"); |
313 | 313 | status = cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block();
|
314 | 314 | if (status == PSA_SUCCESS) {
|
315 |
| - mbedtls_printf("\tsuccess!\r\n"); |
| 315 | + mbedtls_printf("\tsuccess!\n"); |
316 | 316 | }
|
317 | 317 |
|
318 |
| - mbedtls_printf("cipher encrypt/decrypt AES CBC PKCS7 multipart:\r\n"); |
| 318 | + mbedtls_printf("cipher encrypt/decrypt AES CBC PKCS7 multipart:\n"); |
319 | 319 | status = cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi();
|
320 | 320 | if (status == PSA_SUCCESS) {
|
321 |
| - mbedtls_printf("\tsuccess!\r\n"); |
| 321 | + mbedtls_printf("\tsuccess!\n"); |
322 | 322 | }
|
323 | 323 |
|
324 |
| - mbedtls_printf("cipher encrypt/decrypt AES CTR multipart:\r\n"); |
| 324 | + mbedtls_printf("cipher encrypt/decrypt AES CTR multipart:\n"); |
325 | 325 | status = cipher_example_encrypt_decrypt_aes_ctr_multi();
|
326 | 326 | if (status == PSA_SUCCESS) {
|
327 |
| - mbedtls_printf("\tsuccess!\r\n"); |
| 327 | + mbedtls_printf("\tsuccess!\n"); |
328 | 328 | }
|
329 | 329 | }
|
330 | 330 |
|
|
0 commit comments