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

RC5ParameterSpec: behavior of invalid argument is not defined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 5.0
    • security-libs
    • b36
    • sparc
    • solaris_7
    • Verified



      Name: mtR10145 Date: 11/27/2003

      The specs of
      RC5ParameterSpec.RC5ParameterSpec(int, int, int, byte[]) and RC5ParameterSpec.RC5ParameterSpec(int, int, int, byte[], int)
      constructors contain the following sentence: "Note that the size of the IV (block
      size) must be twice the word size. The bytes that constitute the IV are those between iv[0] and iv[2*(wordSize/8)-1] inclusive."
      However dispite of obligatory "MUST" is used it's unclear what happens
      when this rule is broken. The only case mentioned when constructors throw IAE is
      "if iv is null."
      ======================================================================

            mullan Sean Mullan
            cmssunw Cms Cms (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: