87 lines
3.2 KiB
C#
87 lines
3.2 KiB
C#
using System;
|
|
using System.Collections;
|
|
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: 0x02001E34 RID: 7732
|
|
[Token(Token = "0x2001E34")]
|
|
public class DefaultAuthenticatedAttributeTableGenerator : CmsAttributeTableGenerator
|
|
{
|
|
// Token: 0x0600C209 RID: 49673 RVA: 0x002BDC64 File Offset: 0x002BBE64
|
|
[Token(Token = "0x600C209")]
|
|
[Address(RVA = "0x292A9A0", Offset = "0x29299A0", VA = "0x18292A9A0")]
|
|
public DefaultAuthenticatedAttributeTableGenerator()
|
|
{
|
|
IDictionary dictionary = Platform.CreateHashtable();
|
|
this.table = dictionary;
|
|
}
|
|
|
|
// Token: 0x0600C20A RID: 49674 RVA: 0x002BDC88 File Offset: 0x002BBE88
|
|
[Token(Token = "0x600C20A")]
|
|
[Address(RVA = "0x292A910", Offset = "0x2929910", VA = "0x18292A910")]
|
|
public DefaultAuthenticatedAttributeTableGenerator(AttributeTable attributeTable)
|
|
{
|
|
if (attributeTable == 0)
|
|
{
|
|
IDictionary dictionary = Platform.CreateHashtable();
|
|
this.table = dictionary;
|
|
return;
|
|
}
|
|
IDictionary dictionary2 = attributeTable.ToDictionary();
|
|
this.table = dictionary2;
|
|
}
|
|
|
|
// Token: 0x0600C20B RID: 49675 RVA: 0x002BDCC0 File Offset: 0x002BBEC0
|
|
[Token(Token = "0x600C20B")]
|
|
[Address(RVA = "0x292A520", Offset = "0x2929520", VA = "0x18292A520", 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: 0x0600C20C RID: 49676 RVA: 0x002BDD34 File Offset: 0x002BBF34
|
|
[Token(Token = "0x600C20C")]
|
|
[Address(RVA = "0x292A8A0", Offset = "0x29298A0", VA = "0x18292A8A0", Slot = "6")]
|
|
public virtual AttributeTable GetAttributes(IDictionary parameters)
|
|
{
|
|
AttributeTable attributes = this.GetAttributes(parameters);
|
|
AttributeTable attributeTable;
|
|
return attributeTable;
|
|
}
|
|
|
|
// Token: 0x04007ACD RID: 31437
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007ACD")]
|
|
private readonly IDictionary table;
|
|
}
|
|
}
|