Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Cms/CmsCompressedDataParser.cs
T
2026-04-10 22:50:51 +02:00

57 lines
1.7 KiB
C#

using System;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
{
// Token: 0x02001D2F RID: 7471
[Token(Token = "0x2001D2F")]
public class CmsCompressedDataParser : CmsContentInfoParser
{
// Token: 0x0600BD1D RID: 48413 RVA: 0x002B05F8 File Offset: 0x002AE7F8
[Token(Token = "0x600BD1D")]
[Address(RVA = "0x1661AF0", Offset = "0x16608F0", VA = "0x181661AF0")]
public CmsCompressedDataParser(byte[] compressedData)
{
int num;
MemoryStream memoryStream = new MemoryStream(compressedData, num != 0);
num = 0;
base..ctor(memoryStream);
}
// Token: 0x0600BD1E RID: 48414 RVA: 0x002B0618 File Offset: 0x002AE818
[Token(Token = "0x600BD1E")]
[Address(RVA = "0x1661B60", Offset = "0x1660960", VA = "0x181661B60")]
public CmsCompressedDataParser(Stream compressedData)
: base(compressedData)
{
}
// Token: 0x0600BD1F RID: 48415 RVA: 0x002B062C File Offset: 0x002AE82C
[Token(Token = "0x600BD1F")]
[Address(RVA = "0x1661900", Offset = "0x1660700", VA = "0x181661900")]
public CmsTypedStream GetContent()
{
if (this.contentInfo.GetContent(16) == 0)
{
}
CompressedDataParser compressedDataParser;
if (compressedDataParser == 0)
{
throw new NullReferenceException();
}
ContentInfoParser encapContentInfo = compressedDataParser._encapContentInfo;
IAsn1Convertible content = encapContentInfo.GetContent(4);
if (content == 0 || content != 0)
{
int hashCode = encapContentInfo.contentType.GetHashCode();
CmsTypedStream cmsTypedStream;
return cmsTypedStream;
}
throw new NullReferenceException();
}
}
}