Files
hcs/Hcs.Client/GostCryptography/Asn1/Ber/Asn1ObjectDescriptor.cs
HOME-LAPTOP\kshkulev 33ab055b43 Add project
Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
2025-08-12 11:21:10 +09:00

36 lines
992 B
C#

using System;
namespace GostCryptography.Asn1.Ber
{
[Serializable]
public class Asn1ObjectDescriptor : Asn1VarWidthCharString
{
public static readonly Asn1Tag Tag = new Asn1Tag(0, 0, ObjectDescriptorTypeCode);
public Asn1ObjectDescriptor()
: base(ObjectDescriptorTypeCode)
{
}
public Asn1ObjectDescriptor(string data)
: base(data, ObjectDescriptorTypeCode)
{
}
public override void Decode(Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength)
{
Decode(buffer, explicitTagging, implicitLength, Tag);
}
public override int Encode(Asn1BerEncodeBuffer buffer, bool explicitTagging)
{
return Encode(buffer, explicitTagging, Tag);
}
public override void Encode(Asn1BerOutputStream outs, bool explicitTagging)
{
outs.EncodeCharString(Value, explicitTagging, Tag);
}
}
}