m
This commit is contained in:
+56
@@ -0,0 +1,56 @@
|
||||
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: 0x02001E0F RID: 7695
|
||||
[Token(Token = "0x2001E0F")]
|
||||
public class CmsCompressedDataParser : CmsContentInfoParser
|
||||
{
|
||||
// Token: 0x0600C0EB RID: 49387 RVA: 0x002B8E60 File Offset: 0x002B7060
|
||||
[Token(Token = "0x600C0EB")]
|
||||
[Address(RVA = "0x2143160", Offset = "0x2142160", VA = "0x182143160")]
|
||||
public CmsCompressedDataParser(byte[] compressedData)
|
||||
{
|
||||
int num;
|
||||
MemoryStream memoryStream = new MemoryStream(compressedData, num != 0);
|
||||
num = 0;
|
||||
base..ctor(memoryStream);
|
||||
}
|
||||
|
||||
// Token: 0x0600C0EC RID: 49388 RVA: 0x002B8E80 File Offset: 0x002B7080
|
||||
[Token(Token = "0x600C0EC")]
|
||||
[Address(RVA = "0x21431D0", Offset = "0x21421D0", VA = "0x1821431D0")]
|
||||
public CmsCompressedDataParser(Stream compressedData)
|
||||
: base(compressedData)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C0ED RID: 49389 RVA: 0x002B8E94 File Offset: 0x002B7094
|
||||
[Token(Token = "0x600C0ED")]
|
||||
[Address(RVA = "0x2142F70", Offset = "0x2141F70", VA = "0x182142F70")]
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user