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

Correct block size for KW,KWP mode and use fixed IV for KWP mode for SunJCE

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b14
    • CPU:
      generic
    • OS:
      generic

      Description

      Instead of the usual 16 byte length for AES cipher, AES cipher with KW mode (KeyWrap) processes data in 8 byte blocks, thus the padding should use 8 instead of 16 as the block size when padding data. In addition, NSS's KWP impl ignores the specified IV and always use default IV. Thus, for max interoperability, it's probably safest to stick with default IV for KWP mode, at least for now.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              valeriep Valerie Peng
              Reporter:
              valeriep Valerie Peng
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: