Repository: commons-crypto
Updated Branches:
  refs/heads/master 1baf9a840 -> b53228834


CRYPTO-29: Make sure Cypher.ENCRYPT_MODE is consistent with JDK


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

Branch: refs/heads/master
Commit: b53228834059b6240326c56eee411b2808514956
Parents: 1baf9a8
Author: dianfu <dia...@apache.org>
Authored: Fri Apr 29 10:50:13 2016 +0800
Committer: dianfu <dia...@apache.org>
Committed: Fri Apr 29 10:50:13 2016 +0800

----------------------------------------------------------------------
 src/main/java/org/apache/commons/crypto/cipher/Cipher.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/b5322883/src/main/java/org/apache/commons/crypto/cipher/Cipher.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/cipher/Cipher.java 
b/src/main/java/org/apache/commons/crypto/cipher/Cipher.java
index 8ba2380..3cbbe3a 100644
--- a/src/main/java/org/apache/commons/crypto/cipher/Cipher.java
+++ b/src/main/java/org/apache/commons/crypto/cipher/Cipher.java
@@ -38,13 +38,13 @@ public interface Cipher extends Closeable {
    * A constant representing encrypt mode.  The mode constant to be used
    * when calling init method of the Cipher.
    */
-  int ENCRYPT_MODE = 1;
+  int ENCRYPT_MODE = javax.crypto.Cipher.ENCRYPT_MODE;
 
   /**
    * A constant representing decrypt mode.  The mode constant to be used 
    * when calling init method of the Cipher.
    */
-  int DECRYPT_MODE = 0;
+  int DECRYPT_MODE = javax.crypto.Cipher.DECRYPT_MODE;
 
   /**
    * Gets the CipherTransformation for this cipher.

Reply via email to