--- modules/core/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java.orig	2009-09-03 11:19:06.963669000 -0400
+++ modules/core/src/main/java/org/jboss/ws/extensions/security/element/EncryptedKey.java	2009-09-03 11:19:56.539240000 -0400
@@ -92,6 +92,7 @@
       try
       {
          cipher = XMLCipher.getInstance();
+         cipher.init(XMLCipher.DECRYPT_MODE, null);
          key = cipher.loadEncryptedKey(element);
       }
       catch (XMLSecurityException e)
