Ejemplo n.º 1
0
        internal override MutableECPoint Dup()
        {
            MutableECPointCurve25519 Q = new MutableECPointCurve25519();

            Q.Set(this);
            return(Q);
        }
Ejemplo n.º 2
0
        internal override MutableECPoint Decode(byte[] enc)
        {
            MutableECPointCurve25519 P = new MutableECPointCurve25519();

            P.Decode(enc);
            return(P);
        }
Ejemplo n.º 3
0
        internal override MutableECPoint MakeGenerator()
        {
            MutableECPointCurve25519 G = new MutableECPointCurve25519();

            G.Decode(GetGenerator(false));
            return(G);
        }
Ejemplo n.º 4
0
        MutableECPointCurve25519 SameCurve(MutableECPoint Q)
        {
            MutableECPointCurve25519 R = Q as MutableECPointCurve25519;

            if (R == null)
            {
                throw new CryptoException("Mixed curves");
            }
            return(R);
        }
Ejemplo n.º 5
0
        internal override uint EqCT(MutableECPoint Q)
        {
            MutableECPointCurve25519 R = SameCurve(Q);

            return(x.EqCT(R.x));
        }
Ejemplo n.º 6
0
 void SetMuxInner(uint ctl,
                  MutableECPointCurve25519 P1, MutableECPointCurve25519 P2)
 {
     x.CopyMux(ctl, P1.x, P2.x);
 }
Ejemplo n.º 7
0
        internal override void Set(MutableECPoint Q, uint ctl)
        {
            MutableECPointCurve25519 R = SameCurve(Q);

            x.CondCopy(R.x, ctl);
        }
Ejemplo n.º 8
0
        internal override void Set(MutableECPoint Q)
        {
            MutableECPointCurve25519 R = SameCurve(Q);

            x.Set(R.x);
        }