mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-03 20:33:16 +03:00 
			
		
		
		
	Add a check in check_config.h for PK_WRITE_C when RSA is enabled
This is required for importing RSA keys, as mbedtls_psa_rsa_export_key is used internally. Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
		@@ -629,6 +629,12 @@
 | 
			
		||||
        MBEDTLS_ECDSA_C requires MBEDTLS_PK_WRITE_C to be defined."
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_RSA_C) && defined(MBEDTLS_PKCS1_V15) && \
 | 
			
		||||
    !defined(MBEDTLS_PK_WRITE_C) && defined(MBEDTLS_PSA_CRYPTO_C)
 | 
			
		||||
#error "MBEDTLS_PSA_CRYPTO_C, MBEDTLS_RSA_C and  MBEDTLS_PKCS1_V15 defined, \
 | 
			
		||||
        but not all prerequisites"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_RSA_C) && ( !defined(MBEDTLS_BIGNUM_C) ||         \
 | 
			
		||||
    !defined(MBEDTLS_OID_C) )
 | 
			
		||||
#error "MBEDTLS_RSA_C defined, but not all prerequisites"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user