Lines Matching full:if

48 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
53 #if defined MBEDTLS_SELF_TEST
69 if (empty1 == NULL && empty2 == NULL) { in calloc_self_test()
70 if (verbose) { in calloc_self_test()
73 } else if (empty1 == NULL || empty2 == NULL) { in calloc_self_test()
74 if (verbose) { in calloc_self_test()
78 } else if (empty1 == empty2) { in calloc_self_test()
79 if (verbose) { in calloc_self_test()
83 if (verbose) { in calloc_self_test()
93 if (empty1 == NULL && empty2 == NULL) { in calloc_self_test()
94 if (verbose) { in calloc_self_test()
97 } else if (empty1 == NULL || empty2 == NULL) { in calloc_self_test()
98 if (verbose) { in calloc_self_test()
102 } else if (empty1 == empty2) { in calloc_self_test()
103 if (verbose) { in calloc_self_test()
107 if (verbose) { in calloc_self_test()
112 if (buffer1 == NULL || buffer2 == NULL) { in calloc_self_test()
113 if (verbose) { in calloc_self_test()
117 } else if (buffer1 == buffer2) { in calloc_self_test()
118 if (verbose) { in calloc_self_test()
123 if (verbose) { in calloc_self_test()
130 if (buffer1 == NULL) { in calloc_self_test()
131 if (verbose) { in calloc_self_test()
136 if (verbose) { in calloc_self_test()
142 if (buffer3[i] != 0) { in calloc_self_test()
144 if (verbose) { in calloc_self_test()
153 if (buffer4[i] != 0) { in calloc_self_test()
155 if (verbose) { in calloc_self_test()
163 if (verbose) { in calloc_self_test()
183 if (ret < 0 || (size_t) ret >= n) { in test_snprintf()
187 if (strncmp(ref_buf, buf, sizeof(buf)) != 0 || in test_snprintf()
207 * Check if a seed file is present, and if not create one for the entropy
208 * self-test. If this fails, we attempt the test anyway, so no error is passed
211 #if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_ENTROPY_C)
212 #if defined(MBEDTLS_ENTROPY_NV_SEED) && !defined(MBEDTLS_NO_PLATFORM_ENTROPY)
219 /* Attempt to read the entropy seed file. If this fails - attempt to write in create_entropy_seed_file()
223 if (0 == result) { in create_entropy_seed_file()
231 if (0 != result) { in create_entropy_seed_file()
235 if (MBEDTLS_ENTROPY_BLOCK_SIZE != output_len) { in create_entropy_seed_file()
245 #if defined(MBEDTLS_ENTROPY_NV_SEED) && !defined(MBEDTLS_NO_PLATFORM_ENTROPY) in mbedtls_entropy_self_test_wrapper()
252 #if defined(MBEDTLS_SELF_TEST)
253 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
256 if (verbose != 0) { in mbedtls_memory_buffer_alloc_free_and_self_test()
257 #if defined(MBEDTLS_MEMORY_DEBUG) in mbedtls_memory_buffer_alloc_free_and_self_test()
274 #if defined(MBEDTLS_MD5_C)
277 #if defined(MBEDTLS_RIPEMD160_C)
280 #if defined(MBEDTLS_SHA1_C)
283 #if defined(MBEDTLS_SHA224_C)
286 #if defined(MBEDTLS_SHA256_C)
289 #if defined(MBEDTLS_SHA384_C)
292 #if defined(MBEDTLS_SHA512_C)
295 #if defined(MBEDTLS_SHA3_C)
298 #if defined(MBEDTLS_DES_C)
301 #if defined(MBEDTLS_AES_C)
304 #if defined(MBEDTLS_GCM_C) && defined(MBEDTLS_AES_C)
307 #if defined(MBEDTLS_CCM_C) && defined(MBEDTLS_AES_C)
310 #if defined(MBEDTLS_NIST_KW_C) && defined(MBEDTLS_AES_C)
313 #if defined(MBEDTLS_CMAC_C)
316 #if defined(MBEDTLS_CHACHA20_C)
319 #if defined(MBEDTLS_POLY1305_C)
322 #if defined(MBEDTLS_CHACHAPOLY_C)
325 #if defined(MBEDTLS_BASE64_C)
328 #if defined(MBEDTLS_BIGNUM_C)
331 #if defined(MBEDTLS_RSA_C)
334 #if defined(MBEDTLS_CAMELLIA_C)
337 #if defined(MBEDTLS_ARIA_C)
340 #if defined(MBEDTLS_CTR_DRBG_C)
343 #if defined(MBEDTLS_HMAC_DRBG_C)
346 #if defined(MBEDTLS_ECP_C)
349 #if defined(MBEDTLS_ECJPAKE_C)
352 #if defined(MBEDTLS_DHM_C)
355 #if defined(MBEDTLS_ENTROPY_C)
358 #if defined(MBEDTLS_PKCS5_C)
362 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
371 #if defined(MBEDTLS_SELF_TEST) in main()
378 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) && defined(MBEDTLS_SELF_TEST) in main()
386 if (SIZE_MAX < INT_MAX || SIZE_MAX < UINT_MAX) { in main()
391 if (sizeof(int) < 4) { in main()
396 if (sizeof(size_t) < 4) { in main()
403 if (!(p[0] == 0x12 && p[1] == 0x34 && p[2] == 0x56 && p[3] == 0x78) && in main()
415 if (pointer != NULL) { in main()
426 * use padding bits, and fail cleanly if it does. in main()
442 if (sizeof(TYPE) == 2 || sizeof(TYPE) == 4 || \ in main()
444 if ((sizeof(TYPE) == 2 && \ in main()
465 if ((sizeof(TYPE) == 2 && \ in main()
495 if (run_test_snprintf() != 0) { in main()
501 if (strcmp(*argp, "--quiet") == 0 || in main()
504 } else if (strcmp(*argp, "--exclude") == 0 || in main()
512 if (v != 0) { in main()
516 #if defined(MBEDTLS_SELF_TEST) in main()
518 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) in main()
522 if (*argp != NULL && exclude_mode == 0) { in main()
526 if (!strcmp(*argp, test->name)) { in main()
527 if (test->function(v) != 0) { in main()
534 if (test->name == NULL) { in main()
542 if (exclude_mode) { in main()
545 if (!strcmp(*excluded, test->name)) { in main()
549 if (*excluded) { in main()
550 if (v) { in main()
556 if (test->function(v) != 0) { in main()
568 if (v != 0) { in main()
571 if (suites_failed > 0) { in main()
578 if (suites_failed > 0) { in main()