You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Xianda Ke (JIRA)" <ji...@apache.org> on 2016/05/06 12:48:12 UTC

[jira] [Created] (CRYPTO-56) add informative error message, keep consistent with JDK

Xianda Ke created CRYPTO-56:
-------------------------------

             Summary: 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)