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

add informative error message, keep consistent with JDK

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            kexianda Xianda Ke
            kexianda Xianda Ke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: