added further coverage on seed.
public X9Curve(
ECCurve curve)
{
- this.curve = curve;
- this.seed = null;
- setFieldIdentifier();
+ this(curve, null);
}
public X9Curve(
@@ -40,7 +38,7 @@ public X9Curve(
byte[] seed)
{
this.curve = curve;
- this.seed = seed;
+ this.seed = Arrays.clone(seed);
setFieldIdentifier();
}
@@ -99,7 +97,7 @@ else if (representation.equals(ppBasis))
if (seq.size() == 3)
{
- seed = ((DERBitString)seq.getObjectAt(2)).getBytes();
+ seed = Arrays.clone(((DERBitString)seq.getObjectAt(2)).getBytes());
}
}
