Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4496889

CipherSpi.engineGetKeySize() should specify that it returns key size in bits

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jce1.2.2beta
    • 1.4.0
    • security-libs
    • None
    • jce1.2.2beta
    • generic
    • solaris_7

        The javadoc of CipherSpi.engineGetKeySize() should specify that the retruned key size is in bits. Otherwise, people will wonder whether the key size is in bits or bytes.

        In addition, in Cipher's javadoc, it should clarify what does it mean by "copy-safe". Also, if any exception is thrown in the doFinal(), then the cipher object is not reset and may be in an invalid state which require reset for it to be used again.

              valeriep Valerie Peng
              shihliu Sharon Liu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: