From c84c70a83c98e4020868be4f3c961b1cbcb18bb6 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 1 Oct 2019 15:41:42 +0200 Subject: [PATCH] SE driver: save the persistent data after calling p_init --- library/psa_crypto_se.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/psa_crypto_se.c b/library/psa_crypto_se.c index 81f0a1a8f..11604c219 100644 --- a/library/psa_crypto_se.c +++ b/library/psa_crypto_se.c @@ -289,6 +289,9 @@ psa_status_t psa_init_all_se_drivers( void ) driver->lifetime ); if( status != PSA_SUCCESS ) return( status ); + status = psa_save_se_persistent_data( driver ); + if( status != PSA_SUCCESS ) + return( status ); } } return( PSA_SUCCESS );