Style fixes

This commit is contained in:
Mohammad Abo Mokh 2018-07-04 15:57:00 +03:00 committed by itayzafrir
parent 2701005b46
commit a5c7b7d0dd

View file

@ -26,14 +26,17 @@
#endif #endif
#if defined(MBEDTLS_PSA_CRYPTO_C) #if defined(MBEDTLS_PSA_CRYPTO_C)
/*
//! In case MBEDTLS_PSA_CRYPTO_SPM is defined the code is built for SPM (Secure * In case MBEDTLS_PSA_CRYPTO_SPM is defined the code is built for SPM (Secure
//! Partition Manager) integration which separate the code into two parts * Partition Manager) integration which separate the code into two parts
//! NSPE (Non-Secure Process Environment) and SPE (Secure Process Environment). * NSPE (Non-Secure Process Environment) and SPE (Secure Process Environment).
//! In this mode an additional header file should be included. * In this mode an additional header file should be included.
*/
#if defined(MBEDTLS_PSA_CRYPTO_SPM) #if defined(MBEDTLS_PSA_CRYPTO_SPM)
//! PSA_CRYPTO_SECURE means that this file is compiled to the SPE side. /*
//! some headers will be affected by this flag. * PSA_CRYPTO_SECURE means that this file is compiled to the SPE side.
* some headers will be affected by this flag.
*/
#define PSA_CRYPTO_SECURE 1 #define PSA_CRYPTO_SECURE 1
#include "crypto_spe.h" #include "crypto_spe.h"
#endif #endif
@ -2492,6 +2495,7 @@ psa_status_t psa_cipher_abort( psa_cipher_operation_t *operation )
/****************************************************************/ /****************************************************************/
/* Key Policy */ /* Key Policy */
/****************************************************************/ /****************************************************************/
#if !defined(MBEDTLS_PSA_CRYPTO_SPM) #if !defined(MBEDTLS_PSA_CRYPTO_SPM)
void psa_key_policy_init( psa_key_policy_t *policy ) void psa_key_policy_init( psa_key_policy_t *policy )
{ {
@ -2516,6 +2520,7 @@ psa_algorithm_t psa_key_policy_get_algorithm( psa_key_policy_t *policy )
return( policy->alg ); return( policy->alg );
} }
#endif /* !defined(MBEDTLS_PSA_CRYPTO_SPM) */ #endif /* !defined(MBEDTLS_PSA_CRYPTO_SPM) */
psa_status_t psa_set_key_policy( psa_key_slot_t key, psa_status_t psa_set_key_policy( psa_key_slot_t key,
const psa_key_policy_t *policy ) const psa_key_policy_t *policy )
{ {