Re: [PATCH] Add class java.security.StandardMessageDigests

2014-05-05 Thread Xuelei Fan
> On May 5, 2014, at 9:09 PM, Florian Weimer wrote: > >> On 05/05/2014 02:31 PM, Xuelei Fan wrote: >> Comparing with the call: >>MessageDigest md = MessageDigest.getInstance("SHA-1"); >> >> What's the benefit of the following call? >> >>MessageDigest md = StandardMessageDigests.newSHA1

Re: [PATCH] Add class java.security.StandardMessageDigests

2014-05-05 Thread Florian Weimer
On 05/05/2014 02:31 PM, Xuelei Fan wrote: Comparing with the call: MessageDigest md = MessageDigest.getInstance("SHA-1"); What's the benefit of the following call? MessageDigest md = StandardMessageDigests.newSHA1(); What's the context that this new class is supposed to use? It's 10%

Re: [PATCH] Add class java.security.StandardMessageDigests

2014-05-05 Thread Xuelei Fan
Comparing with the call: MessageDigest md = MessageDigest.getInstance("SHA-1"); What's the benefit of the following call? MessageDigest md = StandardMessageDigests.newSHA1(); What's the context that this new class is supposed to use? Thanks & Regards, Xuelei On 5/5/2014 7:51 PM, Florian

Re: [PATCH] Add class java.security.StandardMessageDigests

2014-05-05 Thread Florian Weimer
On 03/24/2014 05:30 PM, Florian Weimer wrote: This CR adds a new class java.security.StandardMessageDigests: Could I get a bug number if this change is fine in principle? Cryptographic hash functions are frequently used direct