Searched refs:stats (Results 1 – 7 of 7) sorted by relevance
| /mbedtls-latest/tests/src/ |
| D | psa_crypto_helpers.c | 73 mbedtls_psa_stats_t stats; in mbedtls_test_helper_is_psa_leaking() local 75 mbedtls_psa_get_stats(&stats); in mbedtls_test_helper_is_psa_leaking() 82 if (stats.volatile_slots > MBEDTLS_TEST_PSA_INTERNAL_KEYS) { in mbedtls_test_helper_is_psa_leaking() 85 if (stats.persistent_slots != 0) { in mbedtls_test_helper_is_psa_leaking() 88 if (stats.external_slots != 0) { in mbedtls_test_helper_is_psa_leaking() 91 if (stats.half_filled_slots != 0) { in mbedtls_test_helper_is_psa_leaking() 94 if (stats.locked_slots != 0) { in mbedtls_test_helper_is_psa_leaking()
|
| /mbedtls-latest/library/ |
| D | psa_crypto_slot_management.c | 1091 void mbedtls_psa_get_stats(mbedtls_psa_stats_t *stats) in mbedtls_psa_get_stats() argument 1093 memset(stats, 0, sizeof(*stats)); in mbedtls_psa_get_stats() 1104 ++stats->empty_slots; in mbedtls_psa_get_stats() 1108 ++stats->locked_slots; in mbedtls_psa_get_stats() 1111 ++stats->volatile_slots; in mbedtls_psa_get_stats() 1114 ++stats->persistent_slots; in mbedtls_psa_get_stats() 1115 if (id > stats->max_open_internal_key_id) { in mbedtls_psa_get_stats() 1116 stats->max_open_internal_key_id = id; in mbedtls_psa_get_stats() 1122 ++stats->external_slots; in mbedtls_psa_get_stats() 1123 if (id > stats->max_open_external_key_id) { in mbedtls_psa_get_stats() [all …]
|
| /mbedtls-latest/tests/suites/ |
| D | test_suite_psa_crypto_init.function | 13 mbedtls_psa_stats_t stats; 14 mbedtls_psa_get_stats(&stats); 16 TEST_EQUAL(stats.volatile_slots, MBEDTLS_TEST_PSA_INTERNAL_KEYS); 17 TEST_EQUAL(stats.persistent_slots, 0); 18 TEST_EQUAL(stats.external_slots, 0); 19 TEST_EQUAL(stats.half_filled_slots, 0); 20 TEST_EQUAL(stats.locked_slots, 0);
|
| D | test_suite_bignum_random.function | 280 /* If upper_bound is small, stats[b] is the number of times the value b 281 * has been generated. Otherwise stats[b] is the number of times a 283 size_t *stats = NULL; 305 TEST_CALLOC(stats, stats_len); 324 ++stats[value]; 327 stats[b] += mbedtls_mpi_get_bit(&R, b); 339 TEST_ASSERT(stats[b] > 0); 359 TEST_ASSERT(stats[b] > 0); 361 TEST_ASSERT(stats[b] < (size_t) iterations); 369 mbedtls_free(stats);
|
| D | test_suite_psa_crypto_slot_management.function | 896 mbedtls_psa_stats_t stats; 897 mbedtls_psa_get_stats(&stats); 899 max_keys -= stats.volatile_slots;
|
| D | test_suite_ssl.function | 3305 mbedtls_psa_stats_t stats; 3342 mbedtls_psa_get_stats(&stats); 3345 free_slots_before = stats.empty_slots; 3357 mbedtls_psa_get_stats(&stats); 3362 TEST_EQUAL(free_slots_before, stats.empty_slots);
|
| /mbedtls-latest/include/psa/ |
| D | crypto_extra.h | 262 void mbedtls_psa_get_stats(mbedtls_psa_stats_t *stats);
|