Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 5 of 5) sorted by relevance

/mbedtls-3.5.0/tests/src/
Dpsa_crypto_helpers.c81 mbedtls_psa_stats_t stats; in mbedtls_test_helper_is_psa_leaking() local
83 mbedtls_psa_get_stats(&stats); in mbedtls_test_helper_is_psa_leaking()
85 if (stats.volatile_slots != 0) { in mbedtls_test_helper_is_psa_leaking()
88 if (stats.persistent_slots != 0) { in mbedtls_test_helper_is_psa_leaking()
91 if (stats.external_slots != 0) { in mbedtls_test_helper_is_psa_leaking()
94 if (stats.half_filled_slots != 0) { in mbedtls_test_helper_is_psa_leaking()
97 if (stats.locked_slots != 0) { in mbedtls_test_helper_is_psa_leaking()
/mbedtls-3.5.0/library/
Dpsa_crypto_slot_management.c544 void mbedtls_psa_get_stats(mbedtls_psa_stats_t *stats) in mbedtls_psa_get_stats() argument
548 memset(stats, 0, sizeof(*stats)); in mbedtls_psa_get_stats()
553 ++stats->locked_slots; in mbedtls_psa_get_stats()
556 ++stats->empty_slots; in mbedtls_psa_get_stats()
560 ++stats->volatile_slots; in mbedtls_psa_get_stats()
563 ++stats->persistent_slots; in mbedtls_psa_get_stats()
564 if (id > stats->max_open_internal_key_id) { in mbedtls_psa_get_stats()
565 stats->max_open_internal_key_id = id; in mbedtls_psa_get_stats()
571 ++stats->external_slots; in mbedtls_psa_get_stats()
572 if (id > stats->max_open_external_key_id) { in mbedtls_psa_get_stats()
[all …]
/mbedtls-3.5.0/tests/suites/
Dtest_suite_bignum_random.function280 /* 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 ASSERT_ALLOC(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);
Dtest_suite_ssl.function3231 mbedtls_psa_stats_t stats;
3264 mbedtls_psa_get_stats(&stats);
3267 free_slots_before = stats.empty_slots;
3279 mbedtls_psa_get_stats(&stats);
3284 TEST_EQUAL(free_slots_before, stats.empty_slots);
/mbedtls-3.5.0/include/psa/
Dcrypto_extra.h257 void mbedtls_psa_get_stats(mbedtls_psa_stats_t *stats);