mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8260274: Cipher.init(int, key) does not use highest priority provider for random bytes
Reviewed-by: ascarpino, xuelei
This commit is contained in:
parent
6aa28b3bdb
commit
434a399bea
8 changed files with 243 additions and 19 deletions
|
@ -448,7 +448,7 @@ public class KeyAgreement {
|
|||
* has an incompatible algorithm type.
|
||||
*/
|
||||
public final void init(Key key) throws InvalidKeyException {
|
||||
init(key, JCAUtil.getSecureRandom());
|
||||
init(key, JCAUtil.getDefSecureRandom());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -516,7 +516,7 @@ public class KeyAgreement {
|
|||
public final void init(Key key, AlgorithmParameterSpec params)
|
||||
throws InvalidKeyException, InvalidAlgorithmParameterException
|
||||
{
|
||||
init(key, params, JCAUtil.getSecureRandom());
|
||||
init(key, params, JCAUtil.getDefSecureRandom());
|
||||
}
|
||||
|
||||
private String getProviderName() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue