示例#1
0
        public override bool Equals(object obj)
        {
            PrivPoly other = (PrivPoly)obj;

            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            if (this.product_flag == other.product_flag)
            {
                // if (this.product_flag > 0)
                //     this.
            }
            else
            {
                return(false);
            }

            return(true);
        }
示例#2
0
 public static PrivateKey Default()
 {
     return(new PrivateKey(0, PrivPoly.Default()));
 }
示例#3
0
 public PrivateKey(ushort q, PrivPoly t)
 {
     this.q = q;
     this.t = t;
 }