You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/08/23 12:46:26 UTC

[commons-crypto] branch master updated: Addresses https://issues.apache.org/jira/browse/CRYPTO-149

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git


The following commit(s) were added to refs/heads/master by this push:
     new 470fa02  Addresses https://issues.apache.org/jira/browse/CRYPTO-149
     new 0731b90  Merge pull request #105 from aremily/gcmtestfix
470fa02 is described below

commit 470fa02c3b0e27bfa74247ded793f8ab0758f799
Author: Alex Remily <al...@gmail.com>
AuthorDate: Sun Aug 9 09:25:03 2020 -0400

    Addresses https://issues.apache.org/jira/browse/CRYPTO-149
---
 src/test/java/org/apache/commons/crypto/cipher/GcmCipherTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/crypto/cipher/GcmCipherTest.java b/src/test/java/org/apache/commons/crypto/cipher/GcmCipherTest.java
index 611587a..f634c66 100644
--- a/src/test/java/org/apache/commons/crypto/cipher/GcmCipherTest.java
+++ b/src/test/java/org/apache/commons/crypto/cipher/GcmCipherTest.java
@@ -198,7 +198,7 @@ public class GcmCipherTest {
 
         final Random r = new Random();
         final int textLength = r.nextInt(1024*1024);
-        final int ivLength = r.nextInt(60);
+        final int ivLength = r.nextInt(59) + 1;
         final int keyLength = 16;
         final int tagLength = 128;  // bits
         final int aadLength = r.nextInt(128);