}
boolean mySHA = macName.startsWith("SHA");
boolean oSHA = o.macName.startsWith("SHA");
- if (mySHA && !oSHA) {
+ if ( !mySHA && oSHA) {
return -1;
}
if (mySHA && !oSHA) {
return suiteName.compareTo(o.suiteName);
}
+ @Override
+ public boolean equals(Object o) {
+ if (o instanceof CipherInfo) {
+ return 0 == this.compareTo((CipherInfo) o);
+ }
+
+ return false;
+ }
+
static String[] cipherRanking = null;
public static String[] getCompleteRanking() {