示例#1
0
 public void Write(ASN1ObjectIdentifier value)
 {
     WriteIdentifier(ASN1Class.Universal, false, ASN1UniversalTag.ObjectIdentifier);
     WriteLength(value.ByteLength);
     writer.Write(ASN1ObjectIdentifier.GetBytes(value.Identifier));
 }
示例#2
0
 public void Write(ASN1ObjectIdentifier value)
 {
     WriteIdentifier(ASN1Class.Universal, false, ASN1UniversalTag.ObjectIdentifier);
     WriteLength(value.ByteLength);
     _writer.Write(ASN1ObjectIdentifier.GetBytes(value.Identifier));
 }
示例#3
0
        private ASN1Object ReadObjectIdentifier(uint length)
        {
            var bytes = _reader.ReadBytes((int)length);

            return(new ASN1ObjectIdentifier(ASN1ObjectIdentifier.Format(bytes)));
        }