Uploaded image for project: 'Commons Crypto'
  1. Commons Crypto
  2. CRYPTO-156

Common Class Padding, Transform and AlgorithmMode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Abandoned
    • 1.1.0
    • 1.2.1
    • Cipher

    Description

      In order to avoid duplicate code and try to unify the transformation of the token i think it's necessary create the next class/enum:

      • OpenSslTransform --> Utility code for dealing with different algorithm types
      • OpenSslPadding --> Containg the enumeration of Cipher Algorithm Padding
      • OpenSslAlgorithmMode --> Enumeration of Algorithm Mode.

      https://github.com/apache/commons-crypto/blob/master/src/main/java/org/apache/commons/crypto/cipher/OpenSsl.java#L208
      https://github.com/apache/commons-crypto/blob/master/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java#L422
      https://github.com/apache/commons-crypto/blob/master/src/main/java/org/apache/commons/crypto/cipher/OpenSsl.java#L47
      https://github.com/apache/commons-crypto/blob/master/src/main/java/org/apache/commons/crypto/jna/OpenSslJnaCipher.java#L399

      Attachments

        Activity

          People

            Unassigned Unassigned
            arturobernalg Arturo Bernal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 50m
                2h 50m