예제 #1
0
        /// <summary>
        /// Get the hash code for this object
        /// </summary>
        ///
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            int prime  = 31;
            int result = 1;

            result = prime * result + N;
            result = prime * result + BufferLenBits;
            result = prime * result + _bufferLenTrits;
            result = prime * result + CBits;
            result = prime * result + Db;
            result = prime * result + DF;
            result = prime * result + DF1;
            result = prime * result + DF2;
            result = prime * result + DF3;
            result = prime * result + Dg;
            result = prime * result + Dm0;
            result = prime * result + MaxM1;
            result = prime * result + DR;
            result = prime * result + DR1;
            result = prime * result + DR2;
            result = prime * result + DR3;
            result = prime * result + (FastFp ? 1231 : 1237);
            result = prime * result + Digest.GetHashCode();
            result = prime * result + RandomEngine.GetHashCode();
            result = prime * result + (HashSeed ? 1231 : 1237);
            result = prime * result + Length;
            result = prime * result + MessageMax;
            result = prime * result + MinMGFHashCalls;
            result = prime * result + MinIGFHashCalls;
            result = prime * result + OId.GetHashCode();
            result = prime * result + PkLen;
            result = prime * result + PolyType.GetHashCode();
            result = prime * result + Q;
            result = prime * result + (Sparse ? 1231 : 1237);

            return(result);
        }