src/java.base/share/classes/sun/security/pkcs12/PKCS12KeyStore.java
changeset 51142 69dc9ea17b33
parent 51063 038688fa32d0
child 52996 2457d862a646
equal deleted inserted replaced
51141:2dd2d73c52f6 51142:69dc9ea17b33
  2096 
  2096 
  2097                 try {
  2097                 try {
  2098                     RetryWithZero.run(pass -> {
  2098                     RetryWithZero.run(pass -> {
  2099                         // Use JCE
  2099                         // Use JCE
  2100                         SecretKey skey = getPBEKey(pass);
  2100                         SecretKey skey = getPBEKey(pass);
  2101                         Cipher cipher = Cipher.getInstance(algOid.toString());
  2101                         Cipher cipher = Cipher.getInstance(
       
  2102                                 mapPBEParamsToAlgorithm(algOid, algParams));
  2102                         cipher.init(Cipher.DECRYPT_MODE, skey, algParams);
  2103                         cipher.init(Cipher.DECRYPT_MODE, skey, algParams);
  2103                         loadSafeContents(new DerInputStream(cipher.doFinal(rawData)));
  2104                         loadSafeContents(new DerInputStream(cipher.doFinal(rawData)));
  2104                         return null;
  2105                         return null;
  2105                     }, password);
  2106                     }, password);
  2106                 } catch (Exception e) {
  2107                 } catch (Exception e) {