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

javax.crypto.SecretKey requires a key-length or key-size attribute

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Believe this impacts all Operating Systems and all jdk versions to date (21 May 2020)

      A DESCRIPTION OF THE PROBLEM :
      Usecase - Need to determine key-check value for 2DES/3DES or AES(128,192,256) keys for keys stored in a hardware cryptographic device / hardware security module.

      Given a proxy reference to the key it is not always possible to obtain (even a null byte filled) encoded key from the underlying device (since its provider implementation dependent).

      Having a length attribute to the secret key would be helpful.

      Current workaround would be to wrap the secret-key on itself and get the encoded key and then determine the key length.


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: