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); }
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); } }
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); } }