diff options
author | David Hook <dgh@cryptoworkshop.com> | 2014-07-22 01:19:06 +0400 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2014-07-22 01:19:06 +0400 |
commit | 1e1e05d90c9f83842c828bfebe290d5bc1807dc3 (patch) | |
tree | ad1212953aa152a9c32ffedea951e9032fe3b42a /core | |
parent | 970d7ad33269e99ed95d026446dbb60a13b9a290 (diff) |
J2ME compatibility updates
Diffstat (limited to 'core')
-rw-r--r-- | core/src/test/java/org/bouncycastle/crypto/test/AESWrapPadTest.java | 2 | ||||
-rw-r--r-- | core/src/test/java/org/bouncycastle/crypto/test/DigestTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/test/java/org/bouncycastle/crypto/test/AESWrapPadTest.java b/core/src/test/java/org/bouncycastle/crypto/test/AESWrapPadTest.java index 3b02f4aa..fcf5979f 100644 --- a/core/src/test/java/org/bouncycastle/crypto/test/AESWrapPadTest.java +++ b/core/src/test/java/org/bouncycastle/crypto/test/AESWrapPadTest.java @@ -123,7 +123,7 @@ public class AESWrapPadTest for (int i = 0; i < numOfRandomIterations; i++) { int kekLength = 128; - boolean shouldIncrease = rnd.nextBoolean(); + boolean shouldIncrease = (rnd.nextInt() & 0x01) != 0; if (shouldIncrease) { kekLength = 256; diff --git a/core/src/test/java/org/bouncycastle/crypto/test/DigestTest.java b/core/src/test/java/org/bouncycastle/crypto/test/DigestTest.java index b25e2d82..db9b490e 100644 --- a/core/src/test/java/org/bouncycastle/crypto/test/DigestTest.java +++ b/core/src/test/java/org/bouncycastle/crypto/test/DigestTest.java @@ -182,7 +182,7 @@ public abstract class DigestTest protected Digest cloneDigest(byte[] encodedState) { - throw new UnsupportedOperationException(); + throw new IllegalStateException("Unsupported"); } // |