summary refs log tree commit diff
path: root/crypto/src/asn1/DERSetParser.cs
blob: 344de3bc11bf46ff729dc73b5133feaba4d97c02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;

namespace Org.BouncyCastle.Asn1
{
    // TODO[asn1] Should be renamed/replaced with DLSetParser
	public class DerSetParser
		: Asn1SetParser
	{
		private readonly Asn1StreamParser m_parser;

		internal DerSetParser(Asn1StreamParser parser)
		{
			this.m_parser = parser;
		}

		public IAsn1Convertible ReadObject()
		{
			return m_parser.ReadObject();
		}

		public Asn1Object ToAsn1Object()
		{
			return DLSet.FromVector(m_parser.ReadVector());
		}
	}
}