Changeset 32903 in osm for applications/editors/josm


Ignore:
Timestamp:
2016-09-03T12:27:48+02:00 (8 years ago)
Author:
donvip
Message:

fix http://errorprone.info/bugpattern/InsecureCipherMode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/TrustOSMplugin.java

    r32533 r32903  
    8989        // create a cipher and attempt to encrypt the data block with our key
    9090        try {
    91             Cipher c = Cipher.getInstance("AES");
     91            Cipher c = Cipher.getInstance("AES/CBC/NoPadding");
    9292            // create a 192 bit secret key from raw bytes
    9393
     
    102102            c.doFinal(data);
    103103        } catch (InvalidKeyException e) {
    104             Main.warn("It seems that the Unrestricted Policy Files are not available in this JVM. "+
     104            Main.warn(e, "It seems that the Unrestricted Policy Files are not available in this JVM. "+
    105105                      "So high level crypto is not allowed. Problems may occur.");
    106106            installUnrestrictedPolicyFiles();
Note: See TracChangeset for help on using the changeset viewer.