369 lines
20 KiB
C#
369 lines
20 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Kisa;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ntt;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
|
|
{
|
|
// Token: 0x0200175B RID: 5979
|
|
[Token(Token = "0x200175B")]
|
|
[StructLayout(3)]
|
|
public class CmsEnvelopedGenerator
|
|
{
|
|
// Token: 0x0600A172 RID: 41330 RVA: 0x00258D74 File Offset: 0x00256F74
|
|
[Token(Token = "0x600A172")]
|
|
[Address(RVA = "0x1C78190", Offset = "0x1C76B90", VA = "0x181C78190")]
|
|
public CmsEnvelopedGenerator()
|
|
{
|
|
SecureRandom secureRandom = new SecureRandom();
|
|
IList list = Platform.CreateArrayList();
|
|
this.recipientInfoGenerators = list;
|
|
base..ctor();
|
|
this.rand = secureRandom;
|
|
}
|
|
|
|
// Token: 0x0600A173 RID: 41331 RVA: 0x00258DA4 File Offset: 0x00256FA4
|
|
[Token(Token = "0x600A173")]
|
|
[Address(RVA = "0x1C78120", Offset = "0x1C76B20", VA = "0x181C78120")]
|
|
public CmsEnvelopedGenerator(SecureRandom rand)
|
|
{
|
|
IList list = Platform.CreateArrayList();
|
|
this.recipientInfoGenerators = list;
|
|
base..ctor();
|
|
this.rand = rand;
|
|
}
|
|
|
|
// Token: 0x17001954 RID: 6484
|
|
// (get) Token: 0x0600A174 RID: 41332 RVA: 0x00258DD0 File Offset: 0x00256FD0
|
|
// (set) Token: 0x0600A175 RID: 41333 RVA: 0x00258DE4 File Offset: 0x00256FE4
|
|
[Token(Token = "0x17001954")]
|
|
public CmsAttributeTableGenerator UnprotectedAttributeGenerator
|
|
{
|
|
[Token(Token = "0x600A174")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.unprotectedAttributeGenerator;
|
|
}
|
|
[Token(Token = "0x600A175")]
|
|
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
|
|
set
|
|
{
|
|
this.unprotectedAttributeGenerator = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A176 RID: 41334 RVA: 0x00258DF8 File Offset: 0x00256FF8
|
|
[Token(Token = "0x600A176")]
|
|
[Address(RVA = "0x1C77740", Offset = "0x1C76140", VA = "0x181C77740")]
|
|
public void AddKeyTransRecipient(X509Certificate cert)
|
|
{
|
|
new KeyTransRecipientInfoGenerator().RecipientCert = cert;
|
|
IList list = this.recipientInfoGenerators;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A177 RID: 41335 RVA: 0x00258E1C File Offset: 0x0025701C
|
|
[Token(Token = "0x600A177")]
|
|
[Address(RVA = "0x1C77680", Offset = "0x1C76080", VA = "0x181C77680")]
|
|
public void AddKeyTransRecipient(AsymmetricKeyParameter pubKey, byte[] subKeyId)
|
|
{
|
|
KeyTransRecipientInfoGenerator keyTransRecipientInfoGenerator = new KeyTransRecipientInfoGenerator();
|
|
keyTransRecipientInfoGenerator.RecipientPublicKey = pubKey;
|
|
DerOctetString derOctetString = new DerOctetString(subKeyId);
|
|
keyTransRecipientInfoGenerator.subjectKeyIdentifier = derOctetString;
|
|
IList list = this.recipientInfoGenerators;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A178 RID: 41336 RVA: 0x00258E50 File Offset: 0x00257050
|
|
[Token(Token = "0x600A178")]
|
|
[Address(RVA = "0x1C770F0", Offset = "0x1C75AF0", VA = "0x181C770F0")]
|
|
public void AddKekRecipient(string keyAlgorithm, KeyParameter key, byte[] keyIdentifier)
|
|
{
|
|
int num;
|
|
int num2;
|
|
KekIdentifier kekIdentifier = new KekIdentifier(keyIdentifier, num, num2);
|
|
num2 = 0;
|
|
num = 0;
|
|
KekRecipientInfoGenerator kekRecipientInfoGenerator = new KekRecipientInfoGenerator();
|
|
kekRecipientInfoGenerator.kekIdentifier = kekIdentifier;
|
|
kekRecipientInfoGenerator.keyEncryptionKeyOID = keyAlgorithm;
|
|
kekRecipientInfoGenerator.KeyEncryptionKey = key;
|
|
IList list = this.recipientInfoGenerators;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A179 RID: 41337 RVA: 0x00258E98 File Offset: 0x00257098
|
|
[Token(Token = "0x600A179")]
|
|
[Address(RVA = "0x1C771F0", Offset = "0x1C75BF0", VA = "0x181C771F0")]
|
|
public void AddKekRecipient(string keyAlgorithm, KeyParameter key, KekIdentifier kekIdentifier)
|
|
{
|
|
KekRecipientInfoGenerator kekRecipientInfoGenerator = new KekRecipientInfoGenerator();
|
|
kekRecipientInfoGenerator.kekIdentifier = kekIdentifier;
|
|
kekRecipientInfoGenerator.keyEncryptionKeyOID = keyAlgorithm;
|
|
kekRecipientInfoGenerator.KeyEncryptionKey = key;
|
|
IList list = this.recipientInfoGenerators;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A17A RID: 41338 RVA: 0x00258ECC File Offset: 0x002570CC
|
|
[Token(Token = "0x600A17A")]
|
|
[Address(RVA = "0x1C777D0", Offset = "0x1C761D0", VA = "0x181C777D0")]
|
|
public void AddPasswordRecipient(CmsPbeKey pbeKey, string kekAlgorithmOid)
|
|
{
|
|
byte[] array = Arrays.Clone(pbeKey.salt);
|
|
int iterationCount = pbeKey.iterationCount;
|
|
Pbkdf2Params pbkdf2Params = new Pbkdf2Params(array, iterationCount);
|
|
PasswordRecipientInfoGenerator passwordRecipientInfoGenerator = new PasswordRecipientInfoGenerator();
|
|
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(PkcsObjectIdentifiers.IdPbkdf2, pbkdf2Params);
|
|
passwordRecipientInfoGenerator.keyDerivationAlgorithm = algorithmIdentifier;
|
|
passwordRecipientInfoGenerator.keyEncryptionKeyOID = kekAlgorithmOid;
|
|
string text = pbeKey.ToString();
|
|
passwordRecipientInfoGenerator.keyEncryptionKey = text;
|
|
IList list = this.recipientInfoGenerators;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A17B RID: 41339 RVA: 0x00258F34 File Offset: 0x00257134
|
|
[Token(Token = "0x600A17B")]
|
|
[Address(RVA = "0x1C772B0", Offset = "0x1C75CB0", VA = "0x181C772B0")]
|
|
public void AddKeyAgreementRecipient(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, X509Certificate recipientCert, string cekWrapAlgorithm)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A17B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Cms.CmsEnvelopedGenerator::AddKeyAgreementRecipient(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate,System.String)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_5A:
|
|
stloc:ArgumentException(var_6_69, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Expected public key"), ldstr:string("senderPublicKey")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600A17C RID: 41340 RVA: 0x00258FAC File Offset: 0x002571AC
|
|
[Token(Token = "0x600A17C")]
|
|
[Address(RVA = "0x1C774D0", Offset = "0x1C75ED0", VA = "0x181C774D0")]
|
|
public void AddKeyAgreementRecipients(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, ICollection recipientCerts, string cekWrapAlgorithm)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A17C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Cms.CmsEnvelopedGenerator::AddKeyAgreementRecipients(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,System.Collections.ICollection,System.String)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_4A:
|
|
stloc:ArgumentException(var_5_59, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Expected public key"), ldstr:string("senderPublicKey")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600A17D RID: 41341 RVA: 0x00259014 File Offset: 0x00257214
|
|
[Token(Token = "0x600A17D")]
|
|
[Address(RVA = "0x1C77B30", Offset = "0x1C76530", VA = "0x181C77B30", Slot = "4")]
|
|
protected internal virtual AlgorithmIdentifier GetAlgorithmIdentifier(string encryptionOid, KeyParameter encKey, Asn1Encodable asn1Params, out ICipherParameters cipherParameters)
|
|
{
|
|
if (asn1Params == 0)
|
|
{
|
|
}
|
|
Asn1Object asn1Object = asn1Params.ToAsn1Object();
|
|
ICipherParameters cipherParameters2 = ParameterUtilities.GetCipherParameters(encryptionOid, encKey, asn1Object);
|
|
return new AlgorithmIdentifier(new DerObjectIdentifier(encryptionOid), asn1Object);
|
|
}
|
|
|
|
// Token: 0x0600A17E RID: 41342 RVA: 0x00259044 File Offset: 0x00257244
|
|
[Token(Token = "0x600A17E")]
|
|
[Address(RVA = "0x1C77960", Offset = "0x1C76360", VA = "0x181C77960", Slot = "5")]
|
|
protected internal virtual Asn1Encodable GenerateAsn1Parameters(string encryptionOid, byte[] encKeyBytes)
|
|
{
|
|
string rc2Cbc = CmsEnvelopedGenerator.RC2Cbc;
|
|
if (!encryptionOid.Equals(rc2Cbc))
|
|
{
|
|
SecureRandom secureRandom = this.rand;
|
|
Asn1Encodable asn1Encodable = ParameterUtilities.GenerateParameters(encryptionOid, secureRandom);
|
|
}
|
|
byte[] array = new byte[8];
|
|
double num = this.rand.NextDouble();
|
|
int length = encKeyBytes.Length;
|
|
if (length < 256)
|
|
{
|
|
short[] array2 = CmsEnvelopedGenerator.rc2Table;
|
|
}
|
|
RC2CbcParameter rc2CbcParameter = new RC2CbcParameter(length, array);
|
|
throw new IndexOutOfRangeException();
|
|
}
|
|
|
|
// Token: 0x0600A17F RID: 41343 RVA: 0x002590C4 File Offset: 0x002572C4
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600A17F")]
|
|
[Address(RVA = "0x1C77C50", Offset = "0x1C76650", VA = "0x181C77C50")]
|
|
static CmsEnvelopedGenerator()
|
|
{
|
|
short[] array = new short[256];
|
|
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.0D762A448FEF55A8E0DA63AB8F3FFC8D3A3F1070).FieldHandle);
|
|
CmsEnvelopedGenerator.rc2Table = array;
|
|
CmsEnvelopedGenerator.DesEde3Cbc = PkcsObjectIdentifiers.DesEde3Cbc.identifier;
|
|
CmsEnvelopedGenerator.RC2Cbc = PkcsObjectIdentifiers.RC2Cbc.identifier;
|
|
CmsEnvelopedGenerator.Aes128Cbc = NistObjectIdentifiers.IdAes128Cbc.identifier;
|
|
CmsEnvelopedGenerator.Aes192Cbc = NistObjectIdentifiers.IdAes192Cbc.identifier;
|
|
CmsEnvelopedGenerator.Aes256Cbc = NistObjectIdentifiers.IdAes256Cbc.identifier;
|
|
CmsEnvelopedGenerator.Camellia128Cbc = NttObjectIdentifiers.IdCamellia128Cbc.identifier;
|
|
CmsEnvelopedGenerator.Camellia192Cbc = NttObjectIdentifiers.IdCamellia192Cbc.identifier;
|
|
CmsEnvelopedGenerator.Camellia256Cbc = NttObjectIdentifiers.IdCamellia256Cbc.identifier;
|
|
CmsEnvelopedGenerator.SeedCbc = KisaObjectIdentifiers.IdSeedCbc.identifier;
|
|
CmsEnvelopedGenerator.DesEde3Wrap = PkcsObjectIdentifiers.IdAlgCms3DesWrap.identifier;
|
|
CmsEnvelopedGenerator.Aes128Wrap = NistObjectIdentifiers.IdAes128Wrap.identifier;
|
|
CmsEnvelopedGenerator.Aes192Wrap = NistObjectIdentifiers.IdAes192Wrap.identifier;
|
|
CmsEnvelopedGenerator.Aes256Wrap = NistObjectIdentifiers.IdAes256Wrap.identifier;
|
|
CmsEnvelopedGenerator.Camellia128Wrap = NttObjectIdentifiers.IdCamellia128Wrap.identifier;
|
|
CmsEnvelopedGenerator.Camellia192Wrap = NttObjectIdentifiers.IdCamellia192Wrap.identifier;
|
|
CmsEnvelopedGenerator.Camellia256Wrap = NttObjectIdentifiers.IdCamellia256Wrap.identifier;
|
|
CmsEnvelopedGenerator.SeedWrap = KisaObjectIdentifiers.IdNpkiAppCmsSeedWrap.identifier;
|
|
CmsEnvelopedGenerator.ECDHSha1Kdf = X9ObjectIdentifiers.DHSinglePassStdDHSha1KdfScheme.identifier;
|
|
CmsEnvelopedGenerator.ECMqvSha1Kdf = X9ObjectIdentifiers.MqvSinglePassSha1KdfScheme.identifier;
|
|
}
|
|
|
|
// Token: 0x04006A45 RID: 27205
|
|
[Token(Token = "0x4006A45")]
|
|
internal static readonly short[] rc2Table;
|
|
|
|
// Token: 0x04006A46 RID: 27206
|
|
[Token(Token = "0x4006A46")]
|
|
public static readonly string DesEde3Cbc;
|
|
|
|
// Token: 0x04006A47 RID: 27207
|
|
[Token(Token = "0x4006A47")]
|
|
public static readonly string RC2Cbc;
|
|
|
|
// Token: 0x04006A48 RID: 27208
|
|
[Token(Token = "0x4006A48")]
|
|
public const string IdeaCbc = "1.3.6.1.4.1.188.7.1.1.2";
|
|
|
|
// Token: 0x04006A49 RID: 27209
|
|
[Token(Token = "0x4006A49")]
|
|
public const string Cast5Cbc = "1.2.840.113533.7.66.10";
|
|
|
|
// Token: 0x04006A4A RID: 27210
|
|
[Token(Token = "0x4006A4A")]
|
|
public static readonly string Aes128Cbc;
|
|
|
|
// Token: 0x04006A4B RID: 27211
|
|
[Token(Token = "0x4006A4B")]
|
|
public static readonly string Aes192Cbc;
|
|
|
|
// Token: 0x04006A4C RID: 27212
|
|
[Token(Token = "0x4006A4C")]
|
|
public static readonly string Aes256Cbc;
|
|
|
|
// Token: 0x04006A4D RID: 27213
|
|
[Token(Token = "0x4006A4D")]
|
|
public static readonly string Camellia128Cbc;
|
|
|
|
// Token: 0x04006A4E RID: 27214
|
|
[Token(Token = "0x4006A4E")]
|
|
public static readonly string Camellia192Cbc;
|
|
|
|
// Token: 0x04006A4F RID: 27215
|
|
[Token(Token = "0x4006A4F")]
|
|
public static readonly string Camellia256Cbc;
|
|
|
|
// Token: 0x04006A50 RID: 27216
|
|
[Token(Token = "0x4006A50")]
|
|
public static readonly string SeedCbc;
|
|
|
|
// Token: 0x04006A51 RID: 27217
|
|
[Token(Token = "0x4006A51")]
|
|
public static readonly string DesEde3Wrap;
|
|
|
|
// Token: 0x04006A52 RID: 27218
|
|
[Token(Token = "0x4006A52")]
|
|
public static readonly string Aes128Wrap;
|
|
|
|
// Token: 0x04006A53 RID: 27219
|
|
[Token(Token = "0x4006A53")]
|
|
public static readonly string Aes192Wrap;
|
|
|
|
// Token: 0x04006A54 RID: 27220
|
|
[Token(Token = "0x4006A54")]
|
|
public static readonly string Aes256Wrap;
|
|
|
|
// Token: 0x04006A55 RID: 27221
|
|
[Token(Token = "0x4006A55")]
|
|
public static readonly string Camellia128Wrap;
|
|
|
|
// Token: 0x04006A56 RID: 27222
|
|
[Token(Token = "0x4006A56")]
|
|
public static readonly string Camellia192Wrap;
|
|
|
|
// Token: 0x04006A57 RID: 27223
|
|
[Token(Token = "0x4006A57")]
|
|
public static readonly string Camellia256Wrap;
|
|
|
|
// Token: 0x04006A58 RID: 27224
|
|
[Token(Token = "0x4006A58")]
|
|
public static readonly string SeedWrap;
|
|
|
|
// Token: 0x04006A59 RID: 27225
|
|
[Token(Token = "0x4006A59")]
|
|
public static readonly string ECDHSha1Kdf;
|
|
|
|
// Token: 0x04006A5A RID: 27226
|
|
[Token(Token = "0x4006A5A")]
|
|
public static readonly string ECMqvSha1Kdf;
|
|
|
|
// Token: 0x04006A5B RID: 27227
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006A5B")]
|
|
internal readonly IList recipientInfoGenerators;
|
|
|
|
// Token: 0x04006A5C RID: 27228
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006A5C")]
|
|
internal readonly SecureRandom rand;
|
|
|
|
// Token: 0x04006A5D RID: 27229
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006A5D")]
|
|
internal CmsAttributeTableGenerator unprotectedAttributeGenerator;
|
|
}
|
|
}
|