Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Abandoned
-
1.1.0
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