Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-05-05 Thread Wang Weijun
Hi Brad I did't expect I need a new updated version at http://cr.openjdk.java.net/~weijun/8051408/webrev.14/ Changes include: 1. The new wording you suggested below. 2. All health-test related codes (even if they were not called in webrev.13 at all) removed. 3. Revert the change in ByteAr

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-28 Thread Wang Weijun
> On Apr 29, 2016, at 2:46 AM, Bradford Wetmore > wrote: > > to completely fill the > buffer before returning from this method. This is more clear. I'll update but will not send out a new webrev. Thanks Max

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-28 Thread Bradford Wetmore
On 4/27/2016 7:16 PM, Wang Weijun wrote: On Apr 28, 2016, at 8:50 AM, Bradford Wetmore wrote: I won't have the cycles to do another full review, but just looked over things I mentioned in my previous review, and things are looking good! I have to jump back to my other projects. Thanks,

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-27 Thread Wang Weijun
http://cr.openjdk.java.net/~weijun/8051408/webrev.13 http://cr.openjdk.java.net/~weijun/8051408/webrev.13/spec http://cr.openjdk.java.net/~weijun/8051408/webrev.13/specdiff Another update. 1. Comment out health test for the moment. 2. Remove the following words in SecureRandom#nextBytes: -

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-27 Thread Wang Weijun
> On Apr 28, 2016, at 8:50 AM, Bradford Wetmore > wrote: > > I won't have the cycles to do another full review, but just looked over > things I mentioned in my previous review, and things are looking good! I have > to jump back to my other projects. Thanks, there are still several thing to d

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-27 Thread Bradford Wetmore
I won't have the cycles to do another full review, but just looked over things I mentioned in my previous review, and things are looking good! I have to jump back to my other projects. Thanks for your careful review of our comments. A few minor points. On 4/27/2016 10:20 AM, Wang Weijun wrote

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-27 Thread Wang Weijun
Webrev updated: http://cr.openjdk.java.net/~weijun/8051408/webrev.12 http://cr.openjdk.java.net/~weijun/8051408/webrev.12/spec http://cr.openjdk.java.net/~weijun/8051408/webrev.12/specdiff 1am now and I will reread the changes tomorrow. This is the result of 3 days' intense work and I hope I cov

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-26 Thread Wang Weijun
> On Apr 27, 2016, at 3:27 AM, Bradford Wetmore > wrote: > > > > On 4/25/2016 11:25 PM, Wang Weijun wrote: >> >>> On Apr 26, 2016, at 8:48 AM, Bradford Wetmore >>> wrote: >>> >>> but the runtime "Health Testing" I was talking about is in the diagram of >>> Section 7, and details in secti

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-26 Thread Bradford Wetmore
Deleting the cruft that doesn't need further discussion. On 4/24/2016 9:13 PM, Wang Weijun wrote: http://cr.openjdk.java.net/~weijun/8051408/webrev.11/ http://cr.openjdk.java.net/~weijun/8051408/webrev.11/spec http://cr.openjdk.java.net/~weijun/8051408/webrev.11/specdiff Thanks for the review

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-26 Thread Anthony Scarpino
On 04/26/2016 12:27 PM, Bradford Wetmore wrote: On 4/25/2016 11:25 PM, Wang Weijun wrote: On Apr 26, 2016, at 8:48 AM, Bradford Wetmore wrote: but the runtime "Health Testing" I was talking about is in the diagram of Section 7, and details in section 11.3: I haven't touched this area yet

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-26 Thread Bradford Wetmore
On 4/25/2016 11:25 PM, Wang Weijun wrote: On Apr 26, 2016, at 8:48 AM, Bradford Wetmore wrote: but the runtime "Health Testing" I was talking about is in the diagram of Section 7, and details in section 11.3: I haven't touched this area yet. If you think it's necessary, I would like to

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-25 Thread Wang Weijun
> On Apr 26, 2016, at 8:48 AM, Bradford Wetmore > wrote: > > but the runtime "Health Testing" I was talking about is in the diagram of > Section 7, and details in section 11.3: I haven't touched this area yet. If you think it's necessary, I would like to add the test inside the static bloc

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-25 Thread Bradford Wetmore
On 4/24/2016 9:13 PM, Wang Weijun wrote: I didn't see any health tests. What is your plan for that? *** If by health test your means the CAVP known-output tests, I am going to put it into test/closed since it's reading a huge (13MB) external file and should be stored on an artifact server.

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-24 Thread Wang Weijun
>> http://cr.openjdk.java.net/~weijun/8051408/webrev.11/ >> http://cr.openjdk.java.net/~weijun/8051408/webrev.11/spec >> http://cr.openjdk.java.net/~weijun/8051408/webrev.11/specdiff Thanks for the review. I copied your DRBG.txt below with my comments. Most are accepted, some I mentioned my previ

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-24 Thread Bradford Wetmore
I haven't followed much of the discussion between you/Xuelei, I will hopefully look at this tomorrow. I just started with webrev.11 and ran heads down with it for the last few days. Comments attached. Brad On 4/21/2016 1:52 AM, Wang Weijun wrote: Hi All Webrev updated again at http://c

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-22 Thread Xuelei Fan
On 4/21/2016 4:52 PM, Wang Weijun wrote: > http://cr.openjdk.java.net/~weijun/8051408/webrev.11/ src/java.base/share/classes/sun/security/provider/AbstractDrbg.java = 343 if (debug != null) { 344 debug.println("nextBytes"); 345 } Would you m

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-21 Thread Xuelei Fan
On 4/21/2016 11:10 PM, Wang Weijun wrote: > >> On Apr 21, 2016, at 9:44 PM, Xuelei Fan wrote: >> public MyCertStore extends CertStoreSpi { public MyCertStore() { // whatever // ;-) Don't ask me why this construct is necessary. } public MyC

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-21 Thread Wang Weijun
> On Apr 21, 2016, at 9:44 PM, Xuelei Fan wrote: > >>> public MyCertStore extends CertStoreSpi { >>> >>> public MyCertStore() { >>> // whatever >>> // ;-) Don't ask me why this construct is necessary. >>> } >>> >>> public MyCertStore(XXX params) { >>> // throws NoSuchMe

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-21 Thread Xuelei Fan
On 4/21/2016 12:29 PM, Wang Weijun wrote: > >> On Apr 20, 2016, at 9:35 AM, Xuelei Fan wrote: >> >> On 4/20/2016 9:17 AM, Wang Weijun wrote: >>> On Apr 20, 2016, at 7:41 AM, Xuelei Fan wrote: On 4/19/2016 11:41 PM, Wang Weijun wrote: > http://cr.openjdk.java.net/~weijun/80

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-21 Thread Wang Weijun
Hi All Webrev updated again at http://cr.openjdk.java.net/~weijun/8051408/webrev.11/ http://cr.openjdk.java.net/~weijun/8051408/webrev.11/spec http://cr.openjdk.java.net/~weijun/8051408/webrev.11/specdiff Changes since webrev.10: - DRBG's generateSeed() will directly read from securerandom.sour

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Wang Weijun
> On Apr 20, 2016, at 9:35 AM, Xuelei Fan wrote: > > On 4/20/2016 9:17 AM, Wang Weijun wrote: >> >>> On Apr 20, 2016, at 7:41 AM, Xuelei Fan wrote: >>> >>> On 4/19/2016 11:41 PM, Wang Weijun wrote: http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ >> >> Please update cop

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Xuelei Fan
On 4/21/2016 9:24 AM, Wang Weijun wrote: > >> On Apr 21, 2016, at 8:07 AM, Xuelei Fan wrote: >> >>> I'll model after Authenticator. That would need some synchronization. >>> >> You have already make synchronization. > > You mean synchronized for instantiateIfNecessary? But this time I need to >

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Wang Weijun
> On Apr 21, 2016, at 8:07 AM, Xuelei Fan wrote: > >> I'll model after Authenticator. That would need some synchronization. >> > You have already make synchronization. You mean synchronized for instantiateIfNecessary? But this time I need to synchronize on cc which is static. > >> I even da

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Xuelei Fan
On 4/21/2016 7:55 AM, Wang Weijun wrote: > >> On Apr 20, 2016, at 11:13 PM, Xuelei Fan wrote: >> >>> Really? You are worried about more than 2^64 instances of DRBG? >>> >> SSL/TLS considers record sequence number wrapping, too. The nonce >> require at least half-strength randomness, I would like

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Bradford Wetmore
On 4/20/2016 4:30 PM, Wang Weijun wrote: 198: Should we add a short 1-liner description for the fields? The variable meanings (esp pr/df) may not be obvious to a casual observer. For example, using these three fields as an example: mech_name: default "Hash_DRBG" "Hash_DRBG" | "H

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Wang Weijun
> On Apr 20, 2016, at 11:13 PM, Xuelei Fan wrote: > >> Really? You are worried about more than 2^64 instances of DRBG? >> > SSL/TLS considers record sequence number wrapping, too. The nonce > require at least half-strength randomness, I would like to follow this > requirement. > >> How about

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Wang Weijun
> On Apr 21, 2016, at 3:06 AM, Bradford Wetmore > wrote: > > >>> 175: Should we add DRBG:SUN as a backup for non-windows? >> >> If NativePRNGBlocking:SUN is not always available, yes we can. > > It should be available, unless someone decides to blow away /dev/(u)random. > But then DRBG wi

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Bradford Wetmore
175: Should we add DRBG:SUN as a backup for non-windows? If NativePRNGBlocking:SUN is not always available, yes we can. It should be available, unless someone decides to blow away /dev/(u)random. But then DRBG will have the same problem. One advantage about listing it here is that deplo

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Xuelei Fan
On 4/20/2016 10:14 PM, Wang Weijun wrote: > >> On Apr 20, 2016, at 12:53 PM, Xuelei Fan wrote: >> >> On 4/20/2016 12:00 PM, Wang Weijun wrote: >>> On Apr 20, 2016, at 11:34 AM, Xuelei Fan wrote: On 4/19/2016 9:09 PM, Xuelei Fan wrote: > On 4/15/2016 9: >> http://cr.openjdk

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Wang Weijun
> On Apr 20, 2016, at 12:00 PM, Wang Weijun wrote: > >> src/java.base/share/classes/sun/security/provider/AbstractDrbg.java >> === >> line 66-68: My understanding is that ... >> >> I would suggest rewords or remove this sentence.

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-20 Thread Wang Weijun
> On Apr 20, 2016, at 12:53 PM, Xuelei Fan wrote: > > On 4/20/2016 12:00 PM, Wang Weijun wrote: >> >>> On Apr 20, 2016, at 11:34 AM, Xuelei Fan wrote: >>> >>> On 4/19/2016 9:09 PM, Xuelei Fan wrote: On 4/15/2016 9: > http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ >>> >>> src

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Xuelei Fan
On 4/20/2016 12:00 PM, Wang Weijun wrote: > >> On Apr 20, 2016, at 11:34 AM, Xuelei Fan wrote: >> >> On 4/19/2016 9:09 PM, Xuelei Fan wrote: >>> On 4/15/2016 9: http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ >> >> src/java.base/share/classes/sun/security/provider/AbstractDrbg.java >>

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Wang Weijun
> On Apr 20, 2016, at 11:34 AM, Xuelei Fan wrote: > > On 4/19/2016 9:09 PM, Xuelei Fan wrote: >> On 4/15/2016 9: >>> http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ > > src/java.base/share/classes/sun/security/provider/AbstractDrbg.java > =

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Xuelei Fan
On 4/19/2016 9:09 PM, Xuelei Fan wrote: > On 4/15/2016 9: >> http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ src/java.base/share/classes/sun/security/provider/AbstractDrbg.java === line 66-68: My understanding is that ... I wo

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Wang Weijun
> On Apr 20, 2016, at 8:54 AM, Bradford Wetmore > wrote: > > > Webrev updated again at > > > > http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ > > http://cr.openjdk.java.net/~weijun/8051408/webrev.10/spec > > http://cr.openjdk.java.net/~weijun/8051408/webrev.10/specdiff > > Some initial

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Xuelei Fan
On 4/20/2016 9:17 AM, Wang Weijun wrote: > >> On Apr 20, 2016, at 7:41 AM, Xuelei Fan wrote: >> >> On 4/19/2016 11:41 PM, Wang Weijun wrote: >>> http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ > > Please update copyright dates. > > src/java.base/share/classes/java/securi

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Wang Weijun
> On Apr 20, 2016, at 7:41 AM, Xuelei Fan wrote: > > On 4/19/2016 11:41 PM, Wang Weijun wrote: >> http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ Please update copyright dates. src/java.base/share/classes/java/security/Provider.java --

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Bradford Wetmore
> Webrev updated again at > > http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ > http://cr.openjdk.java.net/~weijun/8051408/webrev.10/spec > http://cr.openjdk.java.net/~weijun/8051408/webrev.10/specdiff Some initial comments. security/java.security == 123-133: Would you

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Xuelei Fan
On 4/19/2016 11:41 PM, Wang Weijun wrote: >>> >> http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ >> > >> > Please update copyright dates. >> > >> > src/java.base/share/classes/java/security/Provider.java >> > --- >> > 145-151: Looks like

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Wang Weijun
> On Apr 19, 2016, at 9:09 PM, Xuelei Fan wrote: > > On 4/15/2016 9: >> http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ > > Please update copyright dates. > > src/java.base/share/classes/java/security/Provider.java > --- > 145-151: Loo

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Xuelei Fan
On 4/15/2016 9: > http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ Please update copyright dates. src/java.base/share/classes/java/security/Provider.java --- 145-151: Looks like the comment are not correct. There are getInstance(alg,param

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Xuelei Fan
On 4/19/2016 6:39 PM, Wang Weijun wrote: >> > Anyway, minor comments. You can go with the current design, please let >> > me know. > I'd like to keep the current design. OK. Let's move on with the current design. Thanks, Xuelei

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Wang Weijun
> On Apr 19, 2016, at 5:41 PM, Xuelei Fan wrote: > > On 4/19/2016 4:05 PM, Wang Weijun wrote: 2. DrbgParameters.Instantiate Looks like this class would be better to an extendable individual class. Declare this class as "static final" may limit it extension. >> NIST SP 800-90A&C ar

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Xuelei Fan
On 4/19/2016 4:05 PM, Wang Weijun wrote: >> > 2. DrbgParameters.Instantiate >> > Looks like this class would be better to an extendable individual class. >> > Declare this class as "static final" may limit it extension. > NIST SP 800-90A&C are quite clear on what parameters are required for a DRBG.

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Wang Weijun
> On Apr 19, 2016, at 12:34 PM, Xuelei Fan wrote: > > Two minor comments about the spec. > > 1. DrbgParameters.Capability > The spec for each enum item is not very clear. Please add more comments > about the meaning and behavior of each item. OK. I probably should move the text in DrbgParamet

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-19 Thread Wang Weijun
> On Apr 19, 2016, at 12:34 PM, Xuelei Fan wrote: > > Two minor comments about the spec. > > 1. DrbgParameters.Capability > The spec for each enum item is not very clear. Please add more comments > about the meaning and behavior of each item. OK. I probably should move the text in DrbgParamet

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-18 Thread Xuelei Fan
Two minor comments about the spec. 1. DrbgParameters.Capability The spec for each enum item is not very clear. Please add more comments about the meaning and behavior of each item. 2. DrbgParameters.Instantiate Looks like this class would be better to an extendable individual class. Declare thi

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-15 Thread Wang Weijun
Hi All Webrev updated again at http://cr.openjdk.java.net/~weijun/8051408/webrev.10/ http://cr.openjdk.java.net/~weijun/8051408/webrev.10/spec http://cr.openjdk.java.net/~weijun/8051408/webrev.10/specdiff Changes since webrev.09: 1. The first line in DrbgParameters: - * This class specifies th

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-05 Thread Wang Weijun
Thanks for the review. All comments accepted. --Max > On Apr 5, 2016, at 9:13 PM, Seán Coffey wrote: > > A few comments from supportability side of the table. > > = > sun/security/provider/AbstractDrbg.java > >> +if (dp.getStrength() > strength) { >> +t

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-05 Thread Seán Coffey
A few comments from supportability side of the table. = sun/security/provider/AbstractDrbg.java +if (dp.getStrength() > strength) { +throw new IllegalArgumentException("strength too high"); +} +if (result.length > maxNbLength) { +

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-04 Thread Wang Weijun
Updated webrev again at http://cr.openjdk.java.net/~weijun/8051408/webrev.09/ http://cr.openjdk.java.net/~weijun/8051408/webrev.09/spec http://cr.openjdk.java.net/~weijun/8051408/webrev.09/specdiff The only change is that SecureRandomInstantiateParameters, SecureRandomNextBytesParameters and

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-04-01 Thread Wang Weijun
Hi All Updated webrev at http://cr.openjdk.java.net/~weijun/8051408/webrev.08/ http://cr.openjdk.java.net/~weijun/8051408/webrev.08/spec http://cr.openjdk.java.net/~weijun/8051408/webrev.08/specdiff Spec changes: - More text in @implNote of DrbgParameters.java, which somehow matches the

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-03-31 Thread Wang Weijun
Oops. I suddenly realize something wrong about the drbg security property. Hash_DRBG can use SHA-512/224 and it includes a slash. --Max

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-03-31 Thread Wang Weijun
> On Apr 1, 2016, at 3:24 AM, Sean Mullan wrote: > > Just a few comments: > > - SunJCE > > 707 // TODO: aliases with OIDs > > leftover TODO. Every other HMAC algorithm has an OID that can be used as an Alg.Alias.***, but the 2 new algorithms do not have. I expect one day

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-03-31 Thread Sean Mullan
Just a few comments: - SunJCE 707 // TODO: aliases with OIDs leftover TODO. - SecureRandom 604 * @implSpec The default implementation returns {@code null}. Technically, I don't think that is correct, since it is really dependent on what the underlying Spi is doing.

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-03-29 Thread Wang Weijun
Ping again. No comment? --Max > On Mar 21, 2016, at 1:15 PM, Wang Weijun wrote: > > Hi All > > Please take a review at the design and implementation of DRBG at: > > http://cr.openjdk.java.net/~weijun/8051408/webrev.07 > http://cr.openjdk.java.net/~weijun/8051408/webrev.07/spec > http://cr.ope

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-03-21 Thread Wang Weijun
> On Mar 21, 2016, at 1:23 PM, Wang Weijun wrote: > > >> On Mar 21, 2016, at 1:15 PM, Wang Weijun wrote: >> >>if (ins.getCapability() != NONE) { > > Ah, should be > > if (ins.getCapability() != NONE && ins.getCapability() != PR_ONLY) { Oh, back to if (ins.getCapability() != NONE)

Re: RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-03-20 Thread Wang Weijun
> On Mar 21, 2016, at 1:15 PM, Wang Weijun wrote: > > if (ins.getCapability() != NONE) { Ah, should be if (ins.getCapability() != NONE && ins.getCapability() != PR_ONLY) { --Max

RFR 8051408: JEP 273: DRBG-Based SecureRandom Implementations

2016-03-20 Thread Wang Weijun
Hi All Please take a review at the design and implementation of DRBG at: http://cr.openjdk.java.net/~weijun/8051408/webrev.07 http://cr.openjdk.java.net/~weijun/8051408/webrev.07/spec http://cr.openjdk.java.net/~weijun/8051408/webrev.07/specdiff/overview-summary.html An example: SecureRandom d