mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	- Added flag to disable Chinese Remainder Theorem when using RSA private operation (POLARSSL_RSA_NO_CRT)
This commit is contained in:
		
							parent
							
								
									579923c51b
								
							
						
					
					
						commit
						0216cc1bee
					
				@ -143,6 +143,16 @@
 | 
			
		||||
 *
 | 
			
		||||
#define POLARSSL_AES_ROM_TABLES
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * \def POLARSSL_RSA_NO_CRT
 | 
			
		||||
 *
 | 
			
		||||
 * Do not use the Chinese Remainder Theorem for the RSA private operation.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment this macro to disable the use of CRT in RSA.
 | 
			
		||||
 *
 | 
			
		||||
#define POLARSSL_RSA_NO_CRT
 | 
			
		||||
 */
 | 
			
		||||
/* \} name */
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 | 
			
		||||
@ -253,7 +253,7 @@ int rsa_private( rsa_context *ctx,
 | 
			
		||||
        return( POLARSSL_ERR_RSA_BAD_INPUT_DATA );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
#if 0
 | 
			
		||||
#if defined(POLARSSL_RSA_NO_CRT)
 | 
			
		||||
    MPI_CHK( mpi_exp_mod( &T, &T, &ctx->D, &ctx->N, &ctx->RN ) );
 | 
			
		||||
#else
 | 
			
		||||
    /*
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user