public override void Decode(Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength) { var len = explicitTagging ? MatchTag(buffer, Tag) : implicitLength; OidValue = OidValue.FromArray(buffer.DecodeRelOidContents(len)); buffer.TypeCode = RelativeOidTypeCode; }
public override void Decode(Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength) { var len = explicitTagging ? MatchTag(buffer, Tag) : implicitLength; if (len <= 0) { throw ExceptionUtility.CryptographicException(Resources.Asn1InvalidLengthException); } OidValue = OidValue.FromArray(buffer.DecodeOidContents(len)); buffer.TypeCode = ObjectIdentifierTypeCode; }