mbedTLS
global_data
is only used within mbedTLS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
mbedTLS
global_data
global_data variable
Syntax
Show:
Summary
Declaration
from
psa_crypto.c:121
static
psa_global_data_t
global_data
;
Examples
References
from
examples
Code
Location
Referrer
static
psa_global_data_t
global_data
;
psa_crypto.c:121
initialized
=
global_data
.
rng_state
==
RNG_SEEDED
;
psa_crypto.c:131
psa_get_initialized()
(
initialized
&&
(
global_data
.
initialized
==
PSA_CRYPTO_SUBSYSTEM_ALL_INITIALISED
)
)
;
psa_crypto.c:142
psa_get_initialized()
initialized
=
(
global_data
.
initialized
&
PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS_INITIALIZED
)
!=
0
;
psa_crypto.c:159
psa_get_drivers_initialized()
ret
=
mbedtls_ctr_drbg_random
(
&
global_data
.
rng
.
drbg
,
output
,
request_size
)
;
psa_crypto.c:4261
psa_generate_random_internal()
if
(
global_data
.
rng_state
!=
RNG_NOT_INITIALIZED
)
{
psa_crypto.c:8098
mbedtls_psa_crypto_configure_entropy_sources()
global_data
.
rng
.
entropy_init
=
entropy_init
;
psa_crypto.c:8101
mbedtls_psa_crypto_configure_entropy_sources()
global_data
.
rng
.
entropy_free
=
entropy_free
;
psa_crypto.c:8102
mbedtls_psa_crypto_configure_entropy_sources()
if
(
global_data
.
initialized
&
PSA_CRYPTO_SUBSYSTEM_TRANSACTION_INITIALIZED
)
{
psa_crypto.c:8122
mbedtls_psa_crypto_free()
global_data
.
initialized
&=
~
PSA_CRYPTO_SUBSYSTEM_TRANSACTION_INITIALIZED
;
psa_crypto.c:8123
mbedtls_psa_crypto_free()
if
(
global_data
.
initialized
&
PSA_CRYPTO_SUBSYSTEM_KEY_SLOTS_INITIALIZED
)
{
psa_crypto.c:8126
mbedtls_psa_crypto_free()
global_data
.
initialized
&=
~
PSA_CRYPTO_SUBSYSTEM_KEY_SLOTS_INITIALIZED
;
psa_crypto.c:8128
mbedtls_psa_crypto_free()
if
(
global_data
.
rng_state
!=
RNG_NOT_INITIALIZED
)
{
psa_crypto.c:8139
mbedtls_psa_crypto_free()
mbedtls_psa_random_free
(
&
global_data
.
rng
)
;
psa_crypto.c:8140
mbedtls_psa_crypto_free()
global_data
.
rng_state
=
RNG_NOT_INITIALIZED
;
psa_crypto.c:8142
mbedtls_psa_crypto_free()
mbedtls_platform_zeroize
(
&
global_data
.
rng
,
sizeof
(
global_data
.
rng
)
)
;
psa_crypto.c:8143
mbedtls_psa_crypto_free()
if
(
global_data
.
initialized
&
PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS_INITIALIZED
)
{
psa_crypto.c:8154
mbedtls_psa_crypto_free()
global_data
.
initialized
&=
~
PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS_INITIALIZED
;
psa_crypto.c:8156
mbedtls_psa_crypto_free()
if
(
!
(
global_data
.
initialized
&
PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS_INITIALIZED
)
)
{
psa_crypto.c:8202
mbedtls_psa_crypto_init_subsystem()
global_data
.
initialized
|=
PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS_INITIALIZED
;
psa_crypto.c:8207
mbedtls_psa_crypto_init_subsystem()
if
(
!
(
global_data
.
initialized
&
PSA_CRYPTO_SUBSYSTEM_KEY_SLOTS_INITIALIZED
)
)
{
psa_crypto.c:8224
mbedtls_psa_crypto_init_subsystem()
global_data
.
initialized
|=
PSA_CRYPTO_SUBSYSTEM_KEY_SLOTS_INITIALIZED
;
psa_crypto.c:8228
mbedtls_psa_crypto_init_subsystem()
(
global_data
.
initialized
&
PSA_CRYPTO_SUBSYSTEM_DRIVER_WRAPPERS_INITIALIZED
)
;
psa_crypto.c:8245
mbedtls_psa_crypto_init_subsystem()
if
(
global_data
.
rng_state
==
RNG_NOT_INITIALIZED
&&
driver_wrappers_initialized
)
{
psa_crypto.c:8260
mbedtls_psa_crypto_init_subsystem()
mbedtls_psa_random_init
(
&
global_data
.
rng
)
;
psa_crypto.c:8261
mbedtls_psa_crypto_init_subsystem()
global_data
.
rng_state
=
RNG_INITIALIZED
;
psa_crypto.c:8262
mbedtls_psa_crypto_init_subsystem()
status
=
mbedtls_psa_random_seed
(
&
global_data
.
rng
)
;
psa_crypto.c:8264
mbedtls_psa_crypto_init_subsystem()
global_data
.
rng_state
=
RNG_SEEDED
;
psa_crypto.c:8266
mbedtls_psa_crypto_init_subsystem()
if
(
!
(
global_data
.
initialized
&
PSA_CRYPTO_SUBSYSTEM_TRANSACTION_INITIALIZED
)
)
{
psa_crypto.c:8283
mbedtls_psa_crypto_init_subsystem()
global_data
.
initialized
|=
PSA_CRYPTO_SUBSYSTEM_TRANSACTION_INITIALIZED
;
psa_crypto.c:8298
mbedtls_psa_crypto_init_subsystem()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
global_data
is read by 6 functions:
All items filtered out
global_data
psa_get_initialized()
psa_get_drivers_initialized()
psa_generate_random_internal()
mbedtls_psa_crypto_configure_entropy_sources()
mbedtls_psa_crypto_free()
mbedtls_psa_crypto_init_subsystem()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out