Files
2026-04-08 23:40:05 +02:00

62 lines
1.8 KiB
C#

using System;
using System.IO;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
{
// Token: 0x02001752 RID: 5970
[Token(Token = "0x2001752")]
[StructLayout(3)]
public class CmsCompressedDataParser : CmsContentInfoParser
{
// Token: 0x0600A143 RID: 41283 RVA: 0x0025817C File Offset: 0x0025637C
[Token(Token = "0x600A143")]
[Address(RVA = "0x1C74280", Offset = "0x1C72C80", VA = "0x181C74280")]
public CmsCompressedDataParser(byte[] compressedData)
{
int num;
MemoryStream memoryStream = new MemoryStream(compressedData, num != 0);
num = 0;
base..ctor(memoryStream);
}
// Token: 0x0600A144 RID: 41284 RVA: 0x0025819C File Offset: 0x0025639C
[Token(Token = "0x600A144")]
[Address(RVA = "0x1C742F0", Offset = "0x1C72CF0", VA = "0x181C742F0")]
public CmsCompressedDataParser(Stream compressedData)
: base(compressedData)
{
}
// Token: 0x0600A145 RID: 41285 RVA: 0x002581B0 File Offset: 0x002563B0
[Token(Token = "0x600A145")]
[Address(RVA = "0x1C74080", Offset = "0x1C72A80", VA = "0x181C74080")]
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)
{
}
if (content != 0)
{
int hashCode = encapContentInfo.contentType.GetHashCode();
CmsTypedStream cmsTypedStream;
return cmsTypedStream;
}
throw new NullReferenceException();
}
}
}