summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbouncy <bouncy>2013-02-07 02:21:29 +0000
committerbouncy <bouncy>2013-02-07 02:21:29 +0000
commit8ec5287df251d700f856391b908dbcfd74e839a5 (patch)
treeae7cebef2468c995dedcb4005ac959a987b10622
parent9b2ce34e9cf98d0ee2713d6bd629a5265090feef (diff)
downloadandroid_external_spongycastle-8ec5287df251d700f856391b908dbcfd74e839a5.tar.gz
android_external_spongycastle-8ec5287df251d700f856391b908dbcfd74e839a5.tar.bz2
android_external_spongycastle-8ec5287df251d700f856391b908dbcfd74e839a5.zip
compatibility update
-rw-r--r--crypto/test/src/org/bouncycastle/crypto/test/GCMTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/test/src/org/bouncycastle/crypto/test/GCMTest.java b/crypto/test/src/org/bouncycastle/crypto/test/GCMTest.java
index af02de274..31e536e0b 100644
--- a/crypto/test/src/org/bouncycastle/crypto/test/GCMTest.java
+++ b/crypto/test/src/org/bouncycastle/crypto/test/GCMTest.java
@@ -498,7 +498,7 @@ public class GCMTest
byte[] C = new byte[cipher.getOutputSize(P.length)];
int predicted = cipher.getUpdateOutputSize(P.length);
- int split = srng.nextInt(SA.length + 1);
+ int split = nextInt(srng, SA.length + 1);
cipher.processAADBytes(SA, 0, split);
int len = cipher.processBytes(P, 0, P.length, C, 0);
cipher.processAADBytes(SA, split, SA.length - split);
@@ -528,7 +528,7 @@ public class GCMTest
byte[] decP = new byte[cipher.getOutputSize(C.length)];
predicted = cipher.getUpdateOutputSize(C.length);
- split = srng.nextInt(SA.length + 1);
+ split = nextInt(srng, SA.length + 1);
cipher.processAADBytes(SA, 0, split);
len = cipher.processBytes(C, 0, C.length, decP, 0);
cipher.processAADBytes(SA, split, SA.length - split);
@@ -557,7 +557,7 @@ public class GCMTest
cipher.init(false, new AEADParameters(null, parameters.getMacSize(), parameters.getNonce(), parameters.getAssociatedText()));
decP = new byte[cipher.getOutputSize(C.length)];
- split = srng.nextInt(SA.length + 1);
+ split = nextInt(srng, SA.length + 1);
cipher.processAADBytes(SA, 0, split);
len = cipher.processBytes(C, 0, C.length, decP, 0);
cipher.processAADBytes(SA, split, SA.length - split);