Пример #1
0
 public override ECFieldElement SquarePlusProduct(ECFieldElement x, ECFieldElement y)
 {
     ulong[] array  = this.x;
     ulong[] array2 = ((SecT283FieldElement)x).x;
     ulong[] y2     = ((SecT283FieldElement)y).x;
     ulong[] array3 = Nat.Create64(9);
     SecT283Field.SquareAddToExt(array, array3);
     SecT283Field.MultiplyAddToExt(array2, y2, array3);
     ulong[] z = Nat320.Create64();
     SecT283Field.Reduce(array3, z);
     return(new SecT283FieldElement(z));
 }
Пример #2
0
        public override ECFieldElement SquarePlusProduct(ECFieldElement x, ECFieldElement y)
        {
            ulong[] ax = this.x;
            ulong[] xx = ((SecT283FieldElement)x).x, yx = ((SecT283FieldElement)y).x;

            ulong[] tt = Nat.Create64(9);
            SecT283Field.SquareAddToExt(ax, tt);
            SecT283Field.MultiplyAddToExt(xx, yx, tt);

            ulong[] z = Nat320.Create64();
            SecT283Field.Reduce(tt, z);
            return(new SecT283FieldElement(z));
        }