3348b2a
--- com/aelitis/azureus/core/clientmessageservice/secure/impl/SecureMessageServiceClientHelper.java.~1.4.~	2006-02-09 19:43:06.000000000 -0800
3348b2a
+++ com/aelitis/azureus/core/clientmessageservice/secure/impl/SecureMessageServiceClientHelper.java	2006-07-08 11:05:19.000000000 -0700
3348b2a
@@ -36,7 +36,6 @@
3348b2a
 import org.bouncycastle.crypto.encodings.PKCS1Encoding;
3348b2a
 import org.bouncycastle.crypto.engines.RSAEngine;
3348b2a
 import org.bouncycastle.crypto.params.ParametersWithRandom;
3348b2a
-import org.bouncycastle.jce.provider.RSAUtil;
3348b2a
 import org.gudy.azureus2.core3.util.Debug;
3348b2a
 import org.gudy.azureus2.plugins.utils.StaticUtilities;
3348b2a
 
3348b2a
@@ -82,30 +81,12 @@
3348b2a
 				
3348b2a
 			byte[] secret_bytes = session_key.getEncoded();
3348b2a
 			
3348b2a
-			try{
3348b2a
 				Cipher	rsa_cipher = Cipher.getInstance( "RSA" );
3348b2a
 		    
3348b2a
 				rsa_cipher.init( Cipher.ENCRYPT_MODE, public_key );
3348b2a
 		    
3348b2a
 				encryped_session_key = rsa_cipher.doFinal( secret_bytes );
3348b2a
 				
3348b2a
-			}catch( Throwable e ){
3348b2a
-				
3348b2a
-					// fallback to the BC implementation for jdk1.4.2 as JCE RSA not available
3348b2a
-				
3348b2a
-				RSAEngine	eng = new RSAEngine();
3348b2a
-				
3348b2a
-				PKCS1Encoding	padded_eng = new PKCS1Encoding( eng );
3348b2a
-				
3348b2a
-	            CipherParameters param = RSAUtil.generatePublicKeyParameter(public_key);
3348b2a
-	            
3348b2a
-	            param = new ParametersWithRandom(param, new SecureRandom());
3348b2a
-	            
3348b2a
-	            padded_eng.init( true, param );
3348b2a
-				
3348b2a
-				encryped_session_key = padded_eng.processBlock(secret_bytes, 0, secret_bytes.length);
3348b2a
-			}
3348b2a
-
3348b2a
 		}catch( Throwable e ){
3348b2a
 			
3348b2a
 			e.printStackTrace();