Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2014-06-07 04:17:58 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2014-06-07 04:17:58 +0400
commit65ce96eb7bd07db6838516d43f63c79d8d5627e0 (patch)
tree9c38dacc82647576741f6fd82e30e66c92526aac /core
parentd913b0c5e5d9337cccabca173f4babdfaaf22f37 (diff)
minor tweak.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/modes/SICBlockCipher.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/modes/SICBlockCipher.java b/core/src/main/java/org/bouncycastle/crypto/modes/SICBlockCipher.java
index 9068304b..42f909bd 100644
--- a/core/src/main/java/org/bouncycastle/crypto/modes/SICBlockCipher.java
+++ b/core/src/main/java/org/bouncycastle/crypto/modes/SICBlockCipher.java
@@ -90,6 +90,8 @@ public class SICBlockCipher
if (byteCount == 0)
{
cipher.processBlock(counter, 0, counterOut, 0);
+
+ return (byte)(counterOut[byteCount++] ^ in);
}
byte rv = (byte)(counterOut[byteCount++] ^ in);