示例#1
0
        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;
        }
示例#2
0
        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;
        }