public MyGenerator(MyPoint pointQ) { var curve = MyCurve.GetP256NistCurve(); _pointQ = curve.CreatePointAt(NistConstants.P256.Qx, NistConstants.P256.Qy); _pointP = _pointQ * MyConstants.P256.Secret; _state = (pointQ * MyConstants.P256.Secret).X; }
public MyGenerator(int initialState = 1) { _state = 1; var curve = MyCurve.GetP256NistCurve(); _pointQ = curve.CreatePointAt(NistConstants.P256.Qx, NistConstants.P256.Qy) * initialState; _pointP = _pointQ * MyConstants.P256.Secret; }