Re: RFR: 8286069: keytool prints out wrong key algorithm for -importpass command [v2]

2022-05-03 Thread Weijun Wang
> Since `keytool -importpass` always uses `KeyFactory.getInstance("PBE")` to > generate the secret key, and "PBE" is an alias of "PBEwithMD5andDES" inside > the SunJCE security provider, its `getAlgorithm` is always `PBEwithMD5andDES`. > > This code change modifies it to "PBE". > > Note that I

Re: RFR: 8286069: keytool prints out wrong key algorithm for -importpass command

2022-05-03 Thread Weijun Wang
On Wed, 4 May 2022 01:50:34 GMT, Valerie Peng wrote: >> Since `keytool -importpass` always uses `KeyFactory.getInstance("PBE")` to >> generate the secret key, and "PBE" is an alias of "PBEwithMD5andDES" inside >> the SunJCE security provider, its `getAlgorithm` is always >>

Re: RFR: 8286069: keytool prints out wrong key algorithm for -importpass command

2022-05-03 Thread Valerie Peng
On Tue, 3 May 2022 17:51:43 GMT, Weijun Wang wrote: > Since `keytool -importpass` always uses `KeyFactory.getInstance("PBE")` to > generate the secret key, and "PBE" is an alias of "PBEwithMD5andDES" inside > the SunJCE security provider, its `getAlgorithm` is always `PBEwithMD5andDES`. > >

Re: RFR: 8286069: keytool prints out wrong key algorithm for -importpass command

2022-05-03 Thread Hai-May Chao
On Tue, 3 May 2022 17:51:43 GMT, Weijun Wang wrote: > Since `keytool -importpass` always uses `KeyFactory.getInstance("PBE")` to > generate the secret key, and "PBE" is an alias of "PBEwithMD5andDES" inside > the SunJCE security provider, its `getAlgorithm` is always `PBEwithMD5andDES`. > >

RFR: 8286069: keytool prints out wrong key algorithm for -importpass command

2022-05-03 Thread Weijun Wang
Since `keytool -importpass` always uses `KeyFactory.getInstance("PBE")` to generate the secret key, and "PBE" is an alias of "PBEwithMD5andDES" inside the SunJCE security provider, its `getAlgorithm` is always `PBEwithMD5andDES`. This code change modifies it to "PBE". Note that I haven't