mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Updates to fix check-names and all.sh tests after review
Need to make sure the new MBEDTLS_PSA_ACCEL_XXX defines are not checked since they should be defined by the PSA driver. Updated the list-macros.sh script to modify the instances of those found to match the corresponding MBEDTLS_PSA_BUILTIN_XXX that are defined in config_psa.h Fixed definition of MBEDTLS_PSA_BUILTIN_ALG_ECDSA_DETERMINISTIC, name was incorrect. Also fixed a missing space in the comments of crypto_config.h Signed-off-by: John Durkop <john.durkop@fermatsoftware.com>
This commit is contained in:
		
							parent
							
								
									dd544e1463
								
							
						
					
					
						commit
						7b453130e2
					
				@ -49,7 +49,7 @@ extern "C" {
 | 
			
		||||
 | 
			
		||||
#if defined(PSA_WANT_ALG_ECDSA_DETERMINISTIC)
 | 
			
		||||
#if !defined(MBEDTLS_PSA_ACCEL_ALG_ECDSA_DETERMINISTIC)
 | 
			
		||||
#define MBEDTLS_PSA_BUILTIN_ALG_DETERMINISTIC_ECDSA     1
 | 
			
		||||
#define MBEDTLS_PSA_BUILTIN_ALG_ECDSA_DETERMINISTIC     1
 | 
			
		||||
#define MBEDTLS_ECDSA_DETERMINISTIC
 | 
			
		||||
#endif /* MBEDTLS_PSA_ACCEL_ALG_ECDSA_DETERMINISTIC */
 | 
			
		||||
#endif /* PSA_WANT_ALG_DETERMINISTIC_ECDSA */
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@
 | 
			
		||||
 * \file psa/crypto_config.h
 | 
			
		||||
 * \brief PSA crypto configuration options (set of defines)
 | 
			
		||||
 *
 | 
			
		||||
*/
 | 
			
		||||
 */
 | 
			
		||||
#if defined(MBEDTLS_PSA_CRYPTO_CONFIG)
 | 
			
		||||
/**
 | 
			
		||||
 * When #MBEDTLS_PSA_CRYPTO_CONFIG is enabled in config.h,
 | 
			
		||||
 | 
			
		||||
@ -30,4 +30,10 @@ sed -n -e 's/.*#define \([a-zA-Z0-9_]*\).*/\1/p' $HEADERS \
 | 
			
		||||
    | egrep -v '^(asm|inline|EMIT|_CRT_SECURE_NO_DEPRECATE)$|^MULADDC_' \
 | 
			
		||||
    | sort -u > macros
 | 
			
		||||
 | 
			
		||||
# For include/mbedtls/config_psa.h need to ignore the MBEDTLS_xxx define
 | 
			
		||||
# in that file since they may not be defined in include/psa/crypto_config.h
 | 
			
		||||
# This line renames the potentially missing defines to ones that should
 | 
			
		||||
# be present.
 | 
			
		||||
sed -ne 's/^MBEDTLS_PSA_BUILTIN_/MBEDTLS_PSA_ACCEL_/p' <macros >>macros
 | 
			
		||||
 | 
			
		||||
wc -l macros
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user