コード例 #1
0
 /// <inheritdoc/>
 public override bool Equals(CryptoGroupAlgebra <BigInteger>?other)
 {
     return(other is MultiplicativeGroupAlgebra algebra &&
            Prime.Equals(algebra.Prime) &&
            Order.Equals(algebra.Order) &&
            Generator.Equals(algebra.Generator));
 }
コード例 #2
0
 /// <inheritdoc/>
 public override bool Equals(CryptoGroupAlgebra <BigInteger>?other)
 {
     return(other is XOnlyMontgomeryCurveAlgebra algebra && _parameters.Equals(algebra._parameters));
 }
コード例 #3
0
        /// <inheritdoc/>
        public override bool Equals(CryptoGroupAlgebra <CurvePoint>?other)
        {
            var algebra = other as CurveGroupAlgebra;

            return(algebra != null ! && _curveEquation.Equals(algebra._curveEquation));
        }