RC5ParameterSpec: behavior of invalid argument is not defined

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 5.0
    • Affects Version/s: 5.0
    • Component/s: 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."
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: