2002/04/27 04:11:18
[org.ibex.core.git] / src / org / xwt / TinySSL.java
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);