Author: ruchithf
Date: Thu Nov  8 09:14:47 2007
New Revision: 593231

URL: http://svn.apache.org/viewvc?rev=593231&view=rev
Log:
In triple DES max symm keysize is 192

Modified:
    
webservices/rampart/trunk/java/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/AlgorithmSuite.java

Modified: 
webservices/rampart/trunk/java/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/AlgorithmSuite.java
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/java/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/AlgorithmSuite.java?rev=593231&r1=593230&r2=593231&view=diff
==============================================================================
--- 
webservices/rampart/trunk/java/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/AlgorithmSuite.java
 (original)
+++ 
webservices/rampart/trunk/java/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/AlgorithmSuite.java
 Thu Nov  8 09:14:47 2007
@@ -133,6 +133,7 @@
             this.encryptionDerivedKeyLength = 192;
             this.signatureDerivedKeyLength = 192;
             this.minimumSymmetricKeyLength = 192;
+            this.maximumSymmetricKeyLength = 192; //due to use of 3des
         } else if (Constants.ALGO_SUITE_BASIC256_RSA15.equals(algoSuite)) {
             this.digest = Constants.SHA1;
             this.encryption = Constants.AES256;
@@ -173,6 +174,7 @@
             this.encryptionDerivedKeyLength = 192;
             this.signatureDerivedKeyLength = 192;
             this.minimumSymmetricKeyLength = 192;
+            this.maximumSymmetricKeyLength = 192; //due to use of 3des
         } else if (Constants.ALGO_SUITE_BASIC256_SHA256.equals(algoSuite)) {
             this.digest = Constants.SHA256;
             this.encryption = Constants.AES256;
@@ -213,6 +215,7 @@
             this.encryptionDerivedKeyLength = 192;
             this.signatureDerivedKeyLength = 192;
             this.minimumSymmetricKeyLength = 192;
+            this.maximumSymmetricKeyLength = 192; //due to use of 3des
         } else if 
(Constants.ALGO_SUITE_BASIC256_SHA256_RSA15.equals(algoSuite)) {
             this.digest = Constants.SHA256;
             this.encryption = Constants.AES256;
@@ -254,6 +257,7 @@
             this.encryptionDerivedKeyLength = 192;
             this.signatureDerivedKeyLength = 192;
             this.minimumSymmetricKeyLength = 192;
+            this.maximumSymmetricKeyLength = 192; //due to use of 3des
         } else {
             // throw new WSSPolicyException("Invalid algorithm suite : " +
             // algoSuite);


Reply via email to