-
Type:
Enhancement
-
Resolution: Duplicate
-
Priority:
P4
-
None
-
Affects Version/s: 8
-
Component/s: security-libs
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.
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.
- duplicates
-
JDK-8166962 Add getSize() method to java.security.Key
-
- Open
-