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); }
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); }
// helpers private void WriteIdentifier(ASN1Class asn1Class, bool constructed, ASN1UniversalTag tag) { WriteIdentifier(asn1Class, constructed, (byte)tag); }