diff options
-rw-r--r-- | TODO | 6 | ||||
-rw-r--r-- | src/org/noreply/fancydress/type3/mmtp/MMTP.java | 3 |
2 files changed, 7 insertions, 2 deletions
@@ -1,4 +1,4 @@ -iLegend: +Legend: - Not done * Top priority . Partially done @@ -14,4 +14,6 @@ iLegend: - a simple text frontend - build system - find out about applet restriction - + - clean up crypto libraries used (cryptix vs. bouncycastle) + bouncycastle doesn't do TLS right + java doesn't do 4k RSA diff --git a/src/org/noreply/fancydress/type3/mmtp/MMTP.java b/src/org/noreply/fancydress/type3/mmtp/MMTP.java index 3695c52..db4f54e 100644 --- a/src/org/noreply/fancydress/type3/mmtp/MMTP.java +++ b/src/org/noreply/fancydress/type3/mmtp/MMTP.java @@ -19,6 +19,9 @@ public class MMTP { static final String SSL3_RSA_DES_192_CBC3_SHA = "SSL_RSA_WITH_3DES_EDE_CBC_SHA"; public static void send(Packet packet) throws Exception { + //Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); + //Security.insertProviderAt(new org.bouncycastle.jce.provider.BouncyCastleProvider(), 1); + Security.insertProviderAt(new cryptix.jce.provider.CryptixCrypto(), 1); byte[] hash = CryptoPrimitives.hash(packet.asOctets(), Util.toOctets("SEND")); byte[] ackExpected = Util.concat( Util.toOctets("RECEIVED\r\n"), CryptoPrimitives.hash(packet.asOctets(), Util.toOctets("RECEIVED"))); |