BTM
  1. BTM
  2. BTM-129

Crypting resource password with triple-DES (DES-EDE) does not work

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.4
    • Labels:
      None
    • Environment:
      java1.7
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      According to the BTM specification (http://docs.codehaus.org/display/BTM/CryptResourcePassword2x) password crypting feature should work with JVM distributed ciphers (DES & DES-EDE).

      If we try to use DESede as cipher the following exception occurs:
      java.security.spec.InvalidKeySpecException: Inappropriate key specification
      at com.sun.crypto.provider.DESedeKeyFactory.engineGenerateSecret(DESedeKeyFactory.java:71)
      at javax.crypto.SecretKeyFactory.generateSecret(SecretKeyFactory.java:335)
      at bitronix.tm.utils.CryptoEngine.crypt(CryptoEngine.java:89)
      at bitronix.tm.utils.CryptoEngineTest.testCrypt(CryptoEngineTest.java:34)

      CryptoEngineTest.java TC is adapted and attached.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Ludovic Orban
            Reporter:
            Mario Hercog
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: