mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-10-31 21:50:31 +03:00 
			
		
		
		
	Move bignum code path testing out of the library
Without this, it's not at all obvious that turning on MBEDTLS_TEST_HOOKS doesn't change the functional behavior of the code. Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
		
				
					committed by
					
						 Manuel Pégourié-Gonnard
						Manuel Pégourié-Gonnard
					
				
			
			
				
	
			
			
			
						parent
						
							7e909c80ea
						
					
				
				
					commit
					514e62c833
				
			
							
								
								
									
										23
									
								
								library/bignum_core_invasive.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								library/bignum_core_invasive.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| /** | ||||
|  * \file bignum_core_invasive.h | ||||
|  * | ||||
|  * \brief Function declarations for invasive functions of bignum core. | ||||
|  */ | ||||
| /** | ||||
|  *  Copyright The Mbed TLS Contributors | ||||
|  *  SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later | ||||
|  */ | ||||
|  | ||||
| #ifndef MBEDTLS_BIGNUM_CORE_INVASIVE_H | ||||
| #define MBEDTLS_BIGNUM_CORE_INVASIVE_H | ||||
|  | ||||
| #include "bignum_core.h" | ||||
|  | ||||
| #if defined(MBEDTLS_TEST_HOOKS) && !defined(MBEDTLS_THREADING_C) | ||||
|  | ||||
| extern void (*mbedtls_safe_codepath_hook)(void); | ||||
| extern void (*mbedtls_unsafe_codepath_hook)(void); | ||||
|  | ||||
| #endif /* MBEDTLS_TEST_HOOKS && !MBEDTLS_THREADING_C */ | ||||
|  | ||||
| #endif /* MBEDTLS_BIGNUM_CORE_INVASIVE_H */ | ||||
		Reference in New Issue
	
	Block a user