mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-10-30 10:45:34 +03:00 
			
		
		
		
	Optimise public RSA operations
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
						
							b64f1b50ac
						
					
				
				
					commit
					87253af893
				
			| @@ -1257,7 +1257,7 @@ int mbedtls_rsa_public(mbedtls_rsa_context *ctx, | ||||
|     } | ||||
|  | ||||
|     olen = ctx->len; | ||||
|     MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod(&T, &T, &ctx->E, &ctx->N, &ctx->RN)); | ||||
|     MBEDTLS_MPI_CHK(mbedtls_mpi_exp_mod_unsafe(&T, &T, &ctx->E, &ctx->N, &ctx->RN)); | ||||
|     MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); | ||||
|  | ||||
| cleanup: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user