mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
Merge
This commit is contained in:
commit
cfcd0223a9
28 changed files with 1882 additions and 849 deletions
|
@ -104,21 +104,10 @@ public class CurveDB {
|
|||
if (namedCurve.getCurve().getField().getFieldSize() != fieldSize) {
|
||||
continue;
|
||||
}
|
||||
if (namedCurve.getCurve().equals(params.getCurve()) == false) {
|
||||
continue;
|
||||
if (ECUtil.equals(namedCurve, params)) {
|
||||
// everything matches our named curve, return it
|
||||
return namedCurve;
|
||||
}
|
||||
if (namedCurve.getGenerator().equals(params.getGenerator()) ==
|
||||
false) {
|
||||
continue;
|
||||
}
|
||||
if (namedCurve.getOrder().equals(params.getOrder()) == false) {
|
||||
continue;
|
||||
}
|
||||
if (namedCurve.getCofactor() != params.getCofactor()) {
|
||||
continue;
|
||||
}
|
||||
// everything matches our named curve, return it
|
||||
return namedCurve;
|
||||
}
|
||||
// no match found
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue