DerReader.verifyTag

void verifyTag(ref Asn1Value tlv, Asn1Tag expected)

Verifies that the TLV's tag matches the expected tag.

Parameters

tlvThe TLV to verify.
expectedThe expected tag.

Throws

CryptoException if the tags do not match.