You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2016/06/12 12:04:59 UTC

commons-crypto git commit: Remove unnecessary field

Repository: commons-crypto
Updated Branches:
  refs/heads/master 79488c04c -> 2d4c75cca


Remove unnecessary field


Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/2d4c75cc
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/2d4c75cc
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/2d4c75cc

Branch: refs/heads/master
Commit: 2d4c75cca9d2087a4c7c2b00903fdfdd82227c96
Parents: 79488c0
Author: Benedikt Ritter <be...@gmail.com>
Authored: Sun Jun 12 14:04:53 2016 +0200
Committer: Benedikt Ritter <be...@gmail.com>
Committed: Sun Jun 12 14:04:53 2016 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/crypto/utils/Utils.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/2d4c75cc/src/main/java/org/apache/commons/crypto/utils/Utils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/Utils.java b/src/main/java/org/apache/commons/crypto/utils/Utils.java
index 8574882..95eea1a 100644
--- a/src/main/java/org/apache/commons/crypto/utils/Utils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/Utils.java
@@ -47,9 +47,8 @@ import static org.apache.commons.crypto.conf.ConfigurationKeys.COMMONS_CRYPTO_LI
  * General utility methods.
  */
 public final class Utils {
-    private static final int MIN_BUFFER_SIZE = 512;
 
-    protected static final CipherTransformation AES_CTR_NOPADDING = CipherTransformation.AES_CTR_NOPADDING;
+    private static final int MIN_BUFFER_SIZE = 512;
 
     /**
      * For AES, the algorithm block is fixed size of 128 bits.
@@ -57,7 +56,7 @@ public final class Utils {
      * @see <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard">
      *      http://en.wikipedia.org/wiki/Advanced_Encryption_Standard</a>
      */
-    private static final int AES_BLOCK_SIZE = AES_CTR_NOPADDING
+    private static final int AES_BLOCK_SIZE = CipherTransformation.AES_CTR_NOPADDING
             .getAlgorithmBlockSize();
 
     private Utils() {