ReadBigInteger() public méthode

Reads next mpint data type from internal buffer.
public ReadBigInteger ( ) : BigInteger
Résultat BigInteger
Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Key"/> class.
        /// </summary>
        /// <param name="data">DER encoded private key data.</param>
        public Key(byte[] data)
        {
            if (data == null)
                throw new ArgumentNullException("data");

            var der = new DerData(data);
            var version = der.ReadBigInteger();

            var keys = new List<BigInteger>();
            while (!der.IsEndOfData)
            {
                keys.Add(der.ReadBigInteger());
            }

            this._privateKey = keys.ToArray();
        }
Exemple #2
0
 public void ReadBigIntegerTest()
 {
     DerData target = new DerData(); // TODO: Initialize to an appropriate value
     BigInteger expected = new BigInteger(); // TODO: Initialize to an appropriate value
     BigInteger actual;
     actual = target.ReadBigInteger();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }