91 lines
3.0 KiB
C#
91 lines
3.0 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
|
|
{
|
|
// Token: 0x02001D6A RID: 7530
|
|
[Token(Token = "0x2001D6A")]
|
|
public class SignerInfoGenerator
|
|
{
|
|
// Token: 0x0600BEA1 RID: 48801 RVA: 0x002B6DDC File Offset: 0x002B4FDC
|
|
[Token(Token = "0x600BEA1")]
|
|
[Address(RVA = "0x2015050", Offset = "0x2013E50", VA = "0x182015050")]
|
|
internal SignerInfoGenerator(SignerIdentifier sigId, ISignatureFactory signerFactory)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600BEA2 RID: 48802 RVA: 0x002B6DEC File Offset: 0x002B4FEC
|
|
[Token(Token = "0x600BEA2")]
|
|
[Address(RVA = "0x2014F10", Offset = "0x2013D10", VA = "0x182014F10")]
|
|
internal SignerInfoGenerator(SignerIdentifier sigId, ISignatureFactory signerFactory, bool isDirectSignature)
|
|
{
|
|
this.sigId = sigId;
|
|
this.contentSigner = signerFactory;
|
|
this.isDirectSignature = isDirectSignature;
|
|
if (!isDirectSignature)
|
|
{
|
|
DefaultSignedAttributeTableGenerator defaultSignedAttributeTableGenerator = new DefaultSignedAttributeTableGenerator();
|
|
IDictionary dictionary = Platform.CreateHashtable();
|
|
defaultSignedAttributeTableGenerator.table = dictionary;
|
|
}
|
|
int num = 0;
|
|
this.signedGen = num;
|
|
this.unsignedGen = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0600BEA3 RID: 48803 RVA: 0x002B6E40 File Offset: 0x002B5040
|
|
[Token(Token = "0x600BEA3")]
|
|
[Address(RVA = "0x2014FF0", Offset = "0x2013DF0", VA = "0x182014FF0")]
|
|
internal SignerInfoGenerator(SignerIdentifier sigId, ISignatureFactory contentSigner, CmsAttributeTableGenerator signedGen, CmsAttributeTableGenerator unsignedGen)
|
|
{
|
|
this.sigId = sigId;
|
|
this.signedGen = signedGen;
|
|
this.unsignedGen = 0;
|
|
this.contentSigner = contentSigner;
|
|
}
|
|
|
|
// Token: 0x0600BEA4 RID: 48804 RVA: 0x002B6E70 File Offset: 0x002B5070
|
|
[Token(Token = "0x600BEA4")]
|
|
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
|
|
internal void setAssociatedCertificate(X509Certificate certificate)
|
|
{
|
|
this.certificate = certificate;
|
|
}
|
|
|
|
// Token: 0x04007938 RID: 31032
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007938")]
|
|
internal X509Certificate certificate;
|
|
|
|
// Token: 0x04007939 RID: 31033
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007939")]
|
|
internal ISignatureFactory contentSigner;
|
|
|
|
// Token: 0x0400793A RID: 31034
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400793A")]
|
|
internal SignerIdentifier sigId;
|
|
|
|
// Token: 0x0400793B RID: 31035
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400793B")]
|
|
internal CmsAttributeTableGenerator signedGen;
|
|
|
|
// Token: 0x0400793C RID: 31036
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400793C")]
|
|
internal CmsAttributeTableGenerator unsignedGen;
|
|
|
|
// Token: 0x0400793D RID: 31037
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x400793D")]
|
|
private bool isDirectSignature;
|
|
}
|
|
}
|