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

XMLWordPrintable

      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.


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

              Created:
              Updated:
              Resolved: