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

    • b14
    • generic
    • generic
    • Verified

    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

          There are no Sub-Tasks for this issue.

          Activity

            People

              valeriep Valerie Peng
              valeriep Valerie Peng
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: