-
Bug
-
Resolution: Fixed
-
P3
-
11, 13
-
b28
-
x86_64
-
linux_ubuntu
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8226971 | 14 | Valerie Peng | P3 | Resolved | Fixed | b04 |
JDK-8228264 | 13.0.2 | Valerie Peng | P3 | Resolved | Fixed | b01 |
JDK-8228048 | 13.0.1 | Valerie Peng | P3 | Resolved | Fixed | master |
JDK-8232518 | 11.0.6-oracle | Valerie Peng | P3 | Resolved | Fixed | b02 |
JDK-8234558 | 11.0.6 | Valerie Peng | P3 | Resolved | Fixed | b05 |
A DESCRIPTION OF THE PROBLEM :
The constructor of the class sun.security.pkcs11.wrapper.CK_RSA_PKCS_PSS_PARAMS takes the hashAlg to get the MGF function. This should, however, be extracted from the mgfHash parameter.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Read the source code block:
public CK_RSA_PKCS_PSS_PARAMS(String hashAlg, String mgfAlg,
String mgfHash, int sLen) {
this.hashAlg = Functions.getHashMechId(hashAlg);
if (!mgfAlg.equals("MGF1")) {
throw new ProviderException("Only MGF1 is supported");
}
// no dash in PKCS#11 mechanism names
this.mgf = Functions.getMGFId("CKG_MGF1_" + hashAlg.replaceFirst("-", ""));
this.sLen = sLen;
}
FREQUENCY : always
The constructor of the class sun.security.pkcs11.wrapper.CK_RSA_PKCS_PSS_PARAMS takes the hashAlg to get the MGF function. This should, however, be extracted from the mgfHash parameter.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Read the source code block:
public CK_RSA_PKCS_PSS_PARAMS(String hashAlg, String mgfAlg,
String mgfHash, int sLen) {
this.hashAlg = Functions.getHashMechId(hashAlg);
if (!mgfAlg.equals("MGF1")) {
throw new ProviderException("Only MGF1 is supported");
}
// no dash in PKCS#11 mechanism names
this.mgf = Functions.getMGFId("CKG_MGF1_" + hashAlg.replaceFirst("-", ""));
this.sLen = sLen;
}
FREQUENCY : always
- backported by
-
JDK-8226971 Setting the mgfHash in CK_RSA_PKCS_PSS_PARAMS has no effect
-
- Resolved
-
-
JDK-8228048 Setting the mgfHash in CK_RSA_PKCS_PSS_PARAMS has no effect
-
- Resolved
-
-
JDK-8228264 Setting the mgfHash in CK_RSA_PKCS_PSS_PARAMS has no effect
-
- Resolved
-
-
JDK-8232518 Setting the mgfHash in CK_RSA_PKCS_PSS_PARAMS has no effect
-
- Resolved
-
-
JDK-8234558 Setting the mgfHash in CK_RSA_PKCS_PSS_PARAMS has no effect
-
- Resolved
-
- relates to
-
JDK-8080462 Update SunPKCS11 provider with PKCS11 v2.40 support
-
- Resolved
-
(1 relates to)