<font size=2 face="sans-serif">For the algorithms that NIST recognizes
and approves, the doc linked below has some strength comparisons in tables
near page 60</font>
<br>
<br><a href="http://csrc.nist.gov/publications/nistpubs/800-57/sp800-57-Part1-revised2_Mar08-2007.pdf"><font size=3 color=blue><u>http://csrc.nist.gov/publications/nistpubs/800-57/sp800-57-Part1-revised2_Mar08-2007.pdf</u></font></a><font size=3>
</font>
<br><font size=2 face="sans-serif"><br>
Bruce A Rich<br>
brich at-sign us dot ibm dot com<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Bradford Wetmore <bradford.wetmore@oracle.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Weijun Wang <weijun.wang@oracle.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">"Xuelei.Fan@oracle.com"
<Xuelei.Fan@oracle.com>, OpenJDK <security-dev@openjdk.java.net></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">10/23/2011 10:47 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: Is there
an algorithm that computes the strength of a digest alg?</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:    
   </font><font size=1 face="sans-serif">security-dev-bounces@openjdk.java.net</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>I don't know of anything like that.  As Michael
points out, key Lengths <br>
by themselves are not always a good indicator of relative stength.<br>
<br>
BTW, JSSE hard-codes the choices.<br>
<br>
Brad<br>
<br>
<br>
<br>
<br>
On 10/23/2011 6:52 PM, Weijun Wang wrote:<br>
> Hi Andrew<br>
><br>
> I need a method<br>
><br>
> boolean isWeakerThan(String a1, String a2)<br>
><br>
> so that isWeakerThan("MD5", "SHA1") returns true
and<br>
> isWeakerThan("SHA-256", "SHA1") returns false.
I know you have done a<br>
> lot of constraints works in JDK 7. Do you have an existing one?<br>
> Otherwise, I plan to manually assign a value to each known algorithm
and<br>
> compare it.<br>
><br>
> Thanks<br>
> Max<br>
<br>
</font></tt>
<br>