src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/wrapper/CK_RSA_PKCS_PSS_PARAMS.java
changeset 55530 6aa047de311b
parent 55332 f492567244ab
child 58679 9c3209ff7550
equal deleted inserted replaced
55529:33766821f738 55530:6aa047de311b
    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) {