Files
Jan2021-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Cms/DefaultAuthenticatedAttributeTableGenerator.cs
T
2026-04-08 23:40:05 +02:00

89 lines
3.3 KiB
C#

using System;
using System.Collections;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
{
// Token: 0x02001777 RID: 6007
[Token(Token = "0x2001777")]
[StructLayout(3)]
public class DefaultAuthenticatedAttributeTableGenerator : CmsAttributeTableGenerator
{
// Token: 0x0600A261 RID: 41569 RVA: 0x0025CF5C File Offset: 0x0025B15C
[Token(Token = "0x600A261")]
[Address(RVA = "0x656380", Offset = "0x654D80", VA = "0x180656380")]
public DefaultAuthenticatedAttributeTableGenerator()
{
IDictionary dictionary = Platform.CreateHashtable();
this.table = dictionary;
}
// Token: 0x0600A262 RID: 41570 RVA: 0x0025CF80 File Offset: 0x0025B180
[Token(Token = "0x600A262")]
[Address(RVA = "0x6562F0", Offset = "0x654CF0", VA = "0x1806562F0")]
public DefaultAuthenticatedAttributeTableGenerator(AttributeTable attributeTable)
{
if (attributeTable == 0)
{
IDictionary dictionary = Platform.CreateHashtable();
this.table = dictionary;
return;
}
IDictionary dictionary2 = attributeTable.ToDictionary();
this.table = dictionary2;
}
// Token: 0x0600A263 RID: 41571 RVA: 0x0025CFB8 File Offset: 0x0025B1B8
[Token(Token = "0x600A263")]
[Address(RVA = "0x655F00", Offset = "0x654900", VA = "0x180655F00", Slot = "5")]
protected virtual IDictionary CreateStandardAttributeTable(IDictionary parameters)
{
IDictionary dictionary;
CmsAttributeTableParameter cmsAttributeTableParameter2;
do
{
dictionary = Platform.CreateHashtable(this.table);
if (dictionary == 0)
{
CmsAttributeTableParameter cmsAttributeTableParameter;
if (cmsAttributeTableParameter == CmsAttributeTableParameter.ContentType)
{
}
if (cmsAttributeTableParameter == CmsAttributeTableParameter.ContentType)
{
continue;
}
DerObjectIdentifier contentType = CmsAttributes.ContentType;
DerSet derSet = new DerSet(cmsAttributeTableParameter);
BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute attribute = new BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute(contentType, derSet);
}
}
while (cmsAttributeTableParameter2 != CmsAttributeTableParameter.ContentType && cmsAttributeTableParameter2 == CmsAttributeTableParameter.ContentType);
DerObjectIdentifier messageDigest = CmsAttributes.MessageDigest;
DerOctetString derOctetString;
DerSet derSet2 = new DerSet(derOctetString);
BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute attribute2 = new BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute(messageDigest, derSet2);
return dictionary;
}
// Token: 0x0600A264 RID: 41572 RVA: 0x0025D02C File Offset: 0x0025B22C
[Token(Token = "0x600A264")]
[Address(RVA = "0x656280", Offset = "0x654C80", VA = "0x180656280", Slot = "6")]
public virtual AttributeTable GetAttributes(IDictionary parameters)
{
AttributeTable attributes = this.GetAttributes(parameters);
AttributeTable attributeTable;
return attributeTable;
}
// Token: 0x04006AD1 RID: 27345
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006AD1")]
private readonly IDictionary table;
}
}