mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	adjusting size of sliding window array to correct size.
Probably the `W[2 << MBEDTLS_MPI_WINDOW_SIZE]` notation is based on a transcription of 2**MBEDTLS_MPI_WINDOW_SIZE. Signed-off-by: Daniel Otte <d.otte@wut.de>
This commit is contained in:
		
							parent
							
								
									1a6af8489e
								
							
						
					
					
						commit
						388f9b2d0f
					
				@ -2101,7 +2101,7 @@ int mbedtls_mpi_exp_mod( mbedtls_mpi *X, const mbedtls_mpi *A,
 | 
				
			|||||||
    size_t i, j, nblimbs;
 | 
					    size_t i, j, nblimbs;
 | 
				
			||||||
    size_t bufsize, nbits;
 | 
					    size_t bufsize, nbits;
 | 
				
			||||||
    mbedtls_mpi_uint ei, mm, state;
 | 
					    mbedtls_mpi_uint ei, mm, state;
 | 
				
			||||||
    mbedtls_mpi RR, T, W[ 2 << MBEDTLS_MPI_WINDOW_SIZE ], Apos;
 | 
					    mbedtls_mpi RR, T, W[ 1 << MBEDTLS_MPI_WINDOW_SIZE ], Apos;
 | 
				
			||||||
    int neg;
 | 
					    int neg;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    MPI_VALIDATE_RET( X != NULL );
 | 
					    MPI_VALIDATE_RET( X != NULL );
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user