commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xianda Ke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CRYPTO-56) add informative error message, keep consistent with JDK
Date Fri, 06 May 2016 13:15:12 GMT

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

Xianda Ke commented on CRYPTO-56:
---------------------------------

please help review.
[GitHub PR|https://github.com/apache/commons-crypto/pull/41]


> add informative error message, keep consistent with JDK
> -------------------------------------------------------
>
>                 Key: CRYPTO-56
>                 URL: https://issues.apache.org/jira/browse/CRYPTO-56
>             Project: Commons Crypto
>          Issue Type: Improvement
>            Reporter: Xianda Ke
>
> 1. Invalid key length
> When the key length is invalid, Commons Crypto's error message is
> "Invalid key length."  
> JDK would throw an error message: "Invalid AES key length: xx bytes"
> 2. invalid IV length error mesage
> Commons Crypto : "Wrong IV length."
> JDK: "Wrong IV length: must be 16 bytes long"
> JDK's error message is more informative. it would be better to keep consistent with JDK.



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

Mime
View raw message