ta/wallet_ta.c
/** Clear the parent public key cache (see #parent_private_key). This should
  * be called whenever a wallet is unloaded, so that subsequent calls to
  * generate_deterministic256_internal() don't result in addresses from the old
  * wallet. It is
  * to be used internally (only by the functions of the TA itself).
  * \param session_data A data pointer to a session context.
  */
Clear the parent public key cache . This should
be called whenever a wallet is unloaded, so that subsequent calls to
generate_deterministic256_internal() don't result in addresses from the old
wallet. It is
to be used internally (only by the functions of the TA itself).
\param session_data A data pointer to a session context.
Clear the parent public key cache . This should be called whenever a wallet is unloaded so that subsequent calls to generate_deterministic256_internal () don ' t result in addresses from the old wallet . It is to be used internally ( only by the functions of the TA itself ) . \ param session_data A data pointer to a session context .
static void clear_parent_public_key_cache_internal(Session_data * session_data)
{
    TEE_MemFill(
    		(PointAffine*)&(session_data->cached_parent_public_key),
    		(uint32_t)0xff,
    		(uint32_t)sizeof(session_data->cached_parent_public_key));
    TEE_MemFill(
    		(PointAffine*)&(session_data->cached_parent_public_key),
    		(uint32_t)0,
    		(uint32_t)sizeof(session_data->cached_parent_public_key));
    session_data->is_cached_parent_public_key_valid = false;
}
static void clear_parent_public_key_cache_internal ( Session_data * session_data ) { TEE_MemFill ( ( PointAffine * ) & ( session_data -> cached_parent_public_key ) , ( uint32_t ) 0xff , ( uint32_t ) sizeof ( session_data -> cached_parent_public_key ) ) ; TEE_MemFill ( ( PointAffine * ) & ( session_data -> cached_parent_public_key ) , ( uint32_t ) 0 , ( uint32_t ) sizeof ( session_data -> cached_parent_public_key ) ) ; session_data -> is_cached_parent_public_key_valid = false ; }
Clear the parent public key cache (see #parent_private_key).
Clear the parent public key cache ( see #parent_private_key ) .
/* Just to be sure */