示例#1
0
        private void WriteIdentifier(ASN1Class asn1Class, bool constructed, BigInteger tag)
        {
            SecurityAssert.Assert(tag >= 0);

            if (tag > 31)
            {
                throw new NotImplementedException();
            }

            var id = (byte)(((byte)asn1Class << 6) | (constructed ? 0x20 : 0) | ((byte)tag));

            _writer.Write(id);
        }
示例#2
0
        private void WriteIdentifier(ASN1Class asn1Class, bool constructed, BigInteger tag)
        {
            SecurityAssert.SAssert(tag >= 0);

            if (tag > 31)
            {
                throw new NotImplementedException();
            }

            var id = (byte)(((byte)asn1Class << 6) | (constructed ? 0x20 : 0) | ((byte)tag));
            writer.Write(id);
        }
示例#3
0
 // helpers
 private void WriteIdentifier(ASN1Class asn1Class, bool constructed, ASN1UniversalTag tag)
 {
     WriteIdentifier(asn1Class, constructed, (byte)tag);
 }
示例#4
0
 // helpers
 private void WriteIdentifier(ASN1Class asn1Class, bool constructed, ASN1UniversalTag tag)
 {
     WriteIdentifier(asn1Class, constructed, (byte)tag);
 }