Ejemplo n.º 1
0
        public override ECFieldElement MultiplyPlusProduct(ECFieldElement b, ECFieldElement x, ECFieldElement y)
        {
            ulong[] ax = this.x, bx = ((SecT409FieldElement)b).x;
            ulong[] xx = ((SecT409FieldElement)x).x, yx = ((SecT409FieldElement)y).x;

            ulong[] tt = Nat.Create64(13);
            SecT409Field.MultiplyAddToExt(ax, bx, tt);
            SecT409Field.MultiplyAddToExt(xx, yx, tt);

            ulong[] z = Nat448.Create64();
            SecT409Field.Reduce(tt, z);
            return(new SecT409FieldElement(z));
        }
Ejemplo n.º 2
0
 public override ECFieldElement Multiply(ECFieldElement b)
 {
     ulong[] z = Nat448.Create64();
     SecT409Field.Multiply(x, ((SecT409FieldElement)b).x, z);
     return(new SecT409FieldElement(z));
 }
Ejemplo n.º 3
0
 public override ECFieldElement AddOne()
 {
     ulong[] z = Nat448.Create64();
     SecT409Field.AddOne(x, z);
     return(new SecT409FieldElement(z));
 }