commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CRYPTO-82) CipherTransformation is an enum which limits the possible transformations
Date Fri, 17 Jun 2016 11:09:05 GMT

    [ https://issues.apache.org/jira/browse/CRYPTO-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15335874#comment-15335874
] 

Sebb commented on CRYPTO-82:
----------------------------

If this is only intended for use with the native OpenSSL implementation, then it should be
defined in an OpenSSL-specific class.

> CipherTransformation is an enum which limits the possible transformations
> -------------------------------------------------------------------------
>
>                 Key: CRYPTO-82
>                 URL: https://issues.apache.org/jira/browse/CRYPTO-82
>             Project: Commons Crypto
>          Issue Type: Bug
>            Reporter: Sebb
>
> The class CipherTransformation is an enum with only 3 entries currently.
> This seems wrong; surely there are many more possible transformations?
> An enum should generally only be used to denote a limited and known set of choices. Otherwise
users are limited to whatever was made available when the code was released.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message