Exemplo n.º 1
0
        public static BigNumber operator -(BigNumber left, BigNumber right)
        {
            //Ensure that the BigNums have not been disposed
            if (left.fDisposed)
            {
                throw new ObjectDisposedException("left");
            }
            if (right.fDisposed)
            {
                throw new ObjectDisposedException("right");
            }

            //Actually do the operation
            IntPtr r = OpenSSL.BN_new();

            OpenSSL.BN_sub(r, left.fBigNum, right.fBigNum);
            return(new BigNumber(r));
        }