Home
last modified time | relevance | path

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

/mbedtls-development/tests/src/
A Dpsa_crypto_helpers.c78 mbedtls_psa_stats_t stats; in mbedtls_test_helper_is_psa_leaking() local
80 mbedtls_psa_get_stats( &stats ); in mbedtls_test_helper_is_psa_leaking()
82 if( stats.volatile_slots != 0 ) in mbedtls_test_helper_is_psa_leaking()
84 if( stats.persistent_slots != 0 ) in mbedtls_test_helper_is_psa_leaking()
86 if( stats.external_slots != 0 ) in mbedtls_test_helper_is_psa_leaking()
88 if( stats.half_filled_slots != 0 ) in mbedtls_test_helper_is_psa_leaking()
90 if( stats.locked_slots != 0 ) in mbedtls_test_helper_is_psa_leaking()
/mbedtls-development/library/
A Dpsa_crypto_slot_management.c546 void mbedtls_psa_get_stats( mbedtls_psa_stats_t *stats ) in mbedtls_psa_get_stats() argument
550 memset( stats, 0, sizeof( *stats ) ); in mbedtls_psa_get_stats()
557 ++stats->locked_slots; in mbedtls_psa_get_stats()
561 ++stats->empty_slots; in mbedtls_psa_get_stats()
565 ++stats->volatile_slots; in mbedtls_psa_get_stats()
569 ++stats->persistent_slots; in mbedtls_psa_get_stats()
570 if( id > stats->max_open_internal_key_id ) in mbedtls_psa_get_stats()
571 stats->max_open_internal_key_id = id; in mbedtls_psa_get_stats()
577 ++stats->external_slots; in mbedtls_psa_get_stats()
578 if( id > stats->max_open_external_key_id ) in mbedtls_psa_get_stats()
[all …]
/mbedtls-development/tests/suites/
A Dtest_suite_mpi.function1273 /* If upper_bound is small, stats[b] is the number of times the value b
1274 * has been generated. Otherwise stats[b] is the number of times a
1276 size_t *stats = NULL;
1302 ASSERT_ALLOC( stats, stats_len );
1318 ++stats[value];
1323 stats[b] += mbedtls_mpi_get_bit( &result, b );
1336 TEST_ASSERT( stats[b] > 0 );
1356 TEST_ASSERT( stats[b] > 0 );
1358 TEST_ASSERT( stats[b] < (size_t) iterations );
1365 mbedtls_free( stats );
/mbedtls-development/include/psa/
A Dcrypto_extra.h259 void mbedtls_psa_get_stats( mbedtls_psa_stats_t *stats );

Completed in 8 milliseconds