Index: /applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/TrustOSMplugin.java
===================================================================
--- /applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/TrustOSMplugin.java	(revision 32902)
+++ /applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/TrustOSMplugin.java	(revision 32903)
@@ -89,5 +89,5 @@
         // create a cipher and attempt to encrypt the data block with our key
         try {
-            Cipher c = Cipher.getInstance("AES");
+            Cipher c = Cipher.getInstance("AES/CBC/NoPadding");
             // create a 192 bit secret key from raw bytes
 
@@ -102,5 +102,5 @@
             c.doFinal(data);
         } catch (InvalidKeyException e) {
-            Main.warn("It seems that the Unrestricted Policy Files are not available in this JVM. "+
+            Main.warn(e, "It seems that the Unrestricted Policy Files are not available in this JVM. "+
                       "So high level crypto is not allowed. Problems may occur.");
             installUnrestrictedPolicyFiles();
