From 2df69a25b28946ac1c45dbd819facaa7fe14f6e1 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 06:45:26 +0000 Subject: [PATCH] 2002/04/27 04:11:18 darcs-hash:20040130064526-2ba56-83db6f917f78d6a83e4a59d2e5d8162fb04f6549.gz --- CHANGES | 4 ++++ src/org/xwt/TinySSL.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 074f9b3..7fd9de7 100644 --- a/CHANGES +++ b/CHANGES @@ -41,6 +41,10 @@ 26-Apr megacz src/org/xwt/XWT.java: fixed bug 53 +26-Apr megacz src/org/xwt/TinySSL.java: fixed PKCS1 bug + + + diff --git a/src/org/xwt/TinySSL.java b/src/org/xwt/TinySSL.java index 516fee6..41e83a1 100644 --- a/src/org/xwt/TinySSL.java +++ b/src/org/xwt/TinySSL.java @@ -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); -- 1.7.10.4