2002/04/27 04:11:18
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:45:26 +0000 (06:45 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:45:26 +0000 (06:45 +0000)
darcs-hash:20040130064526-2ba56-83db6f917f78d6a83e4a59d2e5d8162fb04f6549.gz

CHANGES
src/org/xwt/TinySSL.java

diff --git a/CHANGES b/CHANGES
index 074f9b3..7fd9de7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 
 26-Apr megacz src/org/xwt/XWT.java: fixed bug 53
 
+26-Apr megacz src/org/xwt/TinySSL.java: fixed PKCS1 bug
+
+
+
 
 
 
index 516fee6..41e83a1 100644 (file)
@@ -1532,7 +1532,7 @@ public class TinySSL extends Socket {
         }
 
         public int getInputBlockSize() { return engine.getInputBlockSize() - (forEncryption ? HEADER_LENGTH : 0); }
-        public int getOutputBlockSize() { return engine.getInputBlockSize() - (forEncryption ? 0 : HEADER_LENGTH); }
+        public int getOutputBlockSize() { return engine.getOutputBlockSize() - (forEncryption ? 0 : HEADER_LENGTH); }
 
         public byte[] processBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException {
             return forEncryption ? encodeBlock(in, inOff, inLen) : decodeBlock(in, inOff, inLen);