public override void Encode(BcpgOutputStream bcpgOut)
        {
            byte[] encoded = oid.GetEncoded();
            ((Stream)bcpgOut).Write(encoded, 1, encoded.Length - 1);
            MPInteger bcpgObject = new MPInteger(point);

            bcpgOut.WriteObject(bcpgObject);
        }
Example #2
0
		private void validOidCheck(
			string oid)
		{
			DerObjectIdentifier o = new DerObjectIdentifier(oid);
			o = (DerObjectIdentifier) Asn1Object.FromByteArray(o.GetEncoded());

			if (!o.Id.Equals(oid))
			{
				Fail("failed oid check: " + oid);
			}
		}
Example #3
0
        private void validOidCheck(
            string oid)
        {
            DerObjectIdentifier o = new DerObjectIdentifier(oid);

            o = (DerObjectIdentifier)Asn1Object.FromByteArray(o.GetEncoded());

            if (!o.Id.Equals(oid))
            {
                Fail("failed oid check: " + oid);
            }
        }