93 lines
3.2 KiB
C#
93 lines
3.2 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
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: 0x0200178D RID: 6029
|
|
[Token(Token = "0x200178D")]
|
|
[StructLayout(3)]
|
|
public class SignerInfoGenerator
|
|
{
|
|
// Token: 0x0600A2C7 RID: 41671 RVA: 0x0025E9C0 File Offset: 0x0025CBC0
|
|
[Token(Token = "0x600A2C7")]
|
|
[Address(RVA = "0x6657C0", Offset = "0x6641C0", VA = "0x1806657C0")]
|
|
internal SignerInfoGenerator(SignerIdentifier sigId, ISignatureFactory signerFactory)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600A2C8 RID: 41672 RVA: 0x0025E9D0 File Offset: 0x0025CBD0
|
|
[Token(Token = "0x600A2C8")]
|
|
[Address(RVA = "0x665680", Offset = "0x664080", VA = "0x180665680")]
|
|
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: 0x0600A2C9 RID: 41673 RVA: 0x0025EA24 File Offset: 0x0025CC24
|
|
[Token(Token = "0x600A2C9")]
|
|
[Address(RVA = "0x665760", Offset = "0x664160", VA = "0x180665760")]
|
|
internal SignerInfoGenerator(SignerIdentifier sigId, ISignatureFactory contentSigner, CmsAttributeTableGenerator signedGen, CmsAttributeTableGenerator unsignedGen)
|
|
{
|
|
this.sigId = sigId;
|
|
this.signedGen = signedGen;
|
|
this.unsignedGen = 0;
|
|
this.contentSigner = contentSigner;
|
|
}
|
|
|
|
// Token: 0x0600A2CA RID: 41674 RVA: 0x0025EA54 File Offset: 0x0025CC54
|
|
[Token(Token = "0x600A2CA")]
|
|
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
|
|
internal void setAssociatedCertificate(X509Certificate certificate)
|
|
{
|
|
this.certificate = certificate;
|
|
}
|
|
|
|
// Token: 0x04006AF5 RID: 27381
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006AF5")]
|
|
internal X509Certificate certificate;
|
|
|
|
// Token: 0x04006AF6 RID: 27382
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006AF6")]
|
|
internal ISignatureFactory contentSigner;
|
|
|
|
// Token: 0x04006AF7 RID: 27383
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006AF7")]
|
|
internal SignerIdentifier sigId;
|
|
|
|
// Token: 0x04006AF8 RID: 27384
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006AF8")]
|
|
internal CmsAttributeTableGenerator signedGen;
|
|
|
|
// Token: 0x04006AF9 RID: 27385
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4006AF9")]
|
|
internal CmsAttributeTableGenerator unsignedGen;
|
|
|
|
// Token: 0x04006AFA RID: 27386
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4006AFA")]
|
|
private bool isDirectSignature;
|
|
}
|
|
}
|