RFR: 8260274: Cipher.init(int, key) does not use highest priority provider for random bytes [v3]

Valerie Peng valeriep at openjdk.java.net
Wed Mar 17 20:09:04 UTC 2021


> Can someone help review this somewhat trivial change?
> 
> Updated JCAUtil class to return the cached SecureRandom object only when the provider configuration has not changed. 
> Added a regression test to check the affected classes, i.e. AlgorithmParameterGenerator, KeyPairGenerator, Cipher, KeyAgreement, KeyGenerator. 
> 
> Thanks,
> Valerie

Valerie Peng has updated the pull request incrementally with one additional commit since the last revision:

  Fixed a null race condition

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3018/files
  - new: https://git.openjdk.java.net/jdk/pull/3018/files/0ad630f3..b513e51d

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3018&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3018&range=01-02

  Stats: 7 lines in 1 file changed: 2 ins; 1 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3018.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3018/head:pull/3018

PR: https://git.openjdk.java.net/jdk/pull/3018


More information about the security-dev mailing list