src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/wrapper/CK_RSA_PKCS_PSS_PARAMS.java
equal
deleted
inserted
replaced
55 this.hashAlg = Functions.getHashMechId(hashAlg); |
55 this.hashAlg = Functions.getHashMechId(hashAlg); |
56 if (!mgfAlg.equals("MGF1")) { |
56 if (!mgfAlg.equals("MGF1")) { |
57 throw new ProviderException("Only MGF1 is supported"); |
57 throw new ProviderException("Only MGF1 is supported"); |
58 } |
58 } |
59 // no dash in PKCS#11 mechanism names |
59 // no dash in PKCS#11 mechanism names |
60 this.mgf = Functions.getMGFId("CKG_MGF1_" + hashAlg.replaceFirst("-", "")); |
60 this.mgf = Functions.getMGFId("CKG_MGF1_" + mgfHash.replaceFirst("-", "")); |
61 this.sLen = sLen; |
61 this.sLen = sLen; |
62 } |
62 } |
63 |
63 |
64 @Override |
64 @Override |
65 public boolean equals(Object o) { |
65 public boolean equals(Object o) { |