367 lines
20 KiB
C#
367 lines
20 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.CompilerServices;
|
|
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: 0x02001D38 RID: 7480
|
|
[Token(Token = "0x2001D38")]
|
|
public class CmsEnvelopedGenerator
|
|
{
|
|
// Token: 0x0600BD4C RID: 48460 RVA: 0x002B11C8 File Offset: 0x002AF3C8
|
|
[Token(Token = "0x600BD4C")]
|
|
[Address(RVA = "0x1665800", Offset = "0x1664600", VA = "0x181665800")]
|
|
public CmsEnvelopedGenerator()
|
|
{
|
|
SecureRandom secureRandom = new SecureRandom();
|
|
IList list = Platform.CreateArrayList();
|
|
this.recipientInfoGenerators = list;
|
|
base..ctor();
|
|
this.rand = secureRandom;
|
|
}
|
|
|
|
// Token: 0x0600BD4D RID: 48461 RVA: 0x002B11F8 File Offset: 0x002AF3F8
|
|
[Token(Token = "0x600BD4D")]
|
|
[Address(RVA = "0x1665790", Offset = "0x1664590", VA = "0x181665790")]
|
|
public CmsEnvelopedGenerator(SecureRandom rand)
|
|
{
|
|
IList list = Platform.CreateArrayList();
|
|
this.recipientInfoGenerators = list;
|
|
base..ctor();
|
|
this.rand = rand;
|
|
}
|
|
|
|
// Token: 0x17001D55 RID: 7509
|
|
// (get) Token: 0x0600BD4E RID: 48462 RVA: 0x002B1224 File Offset: 0x002AF424
|
|
// (set) Token: 0x0600BD4F RID: 48463 RVA: 0x002B1238 File Offset: 0x002AF438
|
|
[Token(Token = "0x17001D55")]
|
|
public CmsAttributeTableGenerator UnprotectedAttributeGenerator
|
|
{
|
|
[Token(Token = "0x600BD4E")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return this.unprotectedAttributeGenerator;
|
|
}
|
|
[Token(Token = "0x600BD4F")]
|
|
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
|
set
|
|
{
|
|
this.unprotectedAttributeGenerator = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600BD50 RID: 48464 RVA: 0x002B124C File Offset: 0x002AF44C
|
|
[Token(Token = "0x600BD50")]
|
|
[Address(RVA = "0x1664DB0", Offset = "0x1663BB0", VA = "0x181664DB0")]
|
|
public void AddKeyTransRecipient(X509Certificate cert)
|
|
{
|
|
new KeyTransRecipientInfoGenerator().RecipientCert = cert;
|
|
IList list = this.recipientInfoGenerators;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600BD51 RID: 48465 RVA: 0x002B1270 File Offset: 0x002AF470
|
|
[Token(Token = "0x600BD51")]
|
|
[Address(RVA = "0x1664CF0", Offset = "0x1663AF0", VA = "0x181664CF0")]
|
|
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: 0x0600BD52 RID: 48466 RVA: 0x002B12A4 File Offset: 0x002AF4A4
|
|
[Token(Token = "0x600BD52")]
|
|
[Address(RVA = "0x1664760", Offset = "0x1663560", VA = "0x181664760")]
|
|
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: 0x0600BD53 RID: 48467 RVA: 0x002B12EC File Offset: 0x002AF4EC
|
|
[Token(Token = "0x600BD53")]
|
|
[Address(RVA = "0x1664860", Offset = "0x1663660", VA = "0x181664860")]
|
|
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: 0x0600BD54 RID: 48468 RVA: 0x002B1320 File Offset: 0x002AF520
|
|
[Token(Token = "0x600BD54")]
|
|
[Address(RVA = "0x1664E40", Offset = "0x1663C40", VA = "0x181664E40")]
|
|
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: 0x0600BD55 RID: 48469 RVA: 0x002B1388 File Offset: 0x002AF588
|
|
[Token(Token = "0x600BD55")]
|
|
[Address(RVA = "0x1664920", Offset = "0x1663720", VA = "0x181664920")]
|
|
public void AddKeyAgreementRecipient(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, X509Certificate recipientCert, string cekWrapAlgorithm)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600BD55)
|
|
|
|
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: 0x0600BD56 RID: 48470 RVA: 0x002B1400 File Offset: 0x002AF600
|
|
[Token(Token = "0x600BD56")]
|
|
[Address(RVA = "0x1664B40", Offset = "0x1663940", VA = "0x181664B40")]
|
|
public void AddKeyAgreementRecipients(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, ICollection recipientCerts, string cekWrapAlgorithm)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600BD56)
|
|
|
|
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: 0x0600BD57 RID: 48471 RVA: 0x002B1468 File Offset: 0x002AF668
|
|
[Token(Token = "0x600BD57")]
|
|
[Address(RVA = "0x16651A0", Offset = "0x1663FA0", VA = "0x1816651A0", 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: 0x0600BD58 RID: 48472 RVA: 0x002B1498 File Offset: 0x002AF698
|
|
[Token(Token = "0x600BD58")]
|
|
[Address(RVA = "0x1664FD0", Offset = "0x1663DD0", VA = "0x181664FD0", 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: 0x0600BD59 RID: 48473 RVA: 0x002B1518 File Offset: 0x002AF718
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600BD59")]
|
|
[Address(RVA = "0x16652C0", Offset = "0x16640C0", VA = "0x1816652C0")]
|
|
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: 0x04007888 RID: 30856
|
|
[Token(Token = "0x4007888")]
|
|
internal static readonly short[] rc2Table;
|
|
|
|
// Token: 0x04007889 RID: 30857
|
|
[Token(Token = "0x4007889")]
|
|
public static readonly string DesEde3Cbc;
|
|
|
|
// Token: 0x0400788A RID: 30858
|
|
[Token(Token = "0x400788A")]
|
|
public static readonly string RC2Cbc;
|
|
|
|
// Token: 0x0400788B RID: 30859
|
|
[Token(Token = "0x400788B")]
|
|
public const string IdeaCbc = "1.3.6.1.4.1.188.7.1.1.2";
|
|
|
|
// Token: 0x0400788C RID: 30860
|
|
[Token(Token = "0x400788C")]
|
|
public const string Cast5Cbc = "1.2.840.113533.7.66.10";
|
|
|
|
// Token: 0x0400788D RID: 30861
|
|
[Token(Token = "0x400788D")]
|
|
public static readonly string Aes128Cbc;
|
|
|
|
// Token: 0x0400788E RID: 30862
|
|
[Token(Token = "0x400788E")]
|
|
public static readonly string Aes192Cbc;
|
|
|
|
// Token: 0x0400788F RID: 30863
|
|
[Token(Token = "0x400788F")]
|
|
public static readonly string Aes256Cbc;
|
|
|
|
// Token: 0x04007890 RID: 30864
|
|
[Token(Token = "0x4007890")]
|
|
public static readonly string Camellia128Cbc;
|
|
|
|
// Token: 0x04007891 RID: 30865
|
|
[Token(Token = "0x4007891")]
|
|
public static readonly string Camellia192Cbc;
|
|
|
|
// Token: 0x04007892 RID: 30866
|
|
[Token(Token = "0x4007892")]
|
|
public static readonly string Camellia256Cbc;
|
|
|
|
// Token: 0x04007893 RID: 30867
|
|
[Token(Token = "0x4007893")]
|
|
public static readonly string SeedCbc;
|
|
|
|
// Token: 0x04007894 RID: 30868
|
|
[Token(Token = "0x4007894")]
|
|
public static readonly string DesEde3Wrap;
|
|
|
|
// Token: 0x04007895 RID: 30869
|
|
[Token(Token = "0x4007895")]
|
|
public static readonly string Aes128Wrap;
|
|
|
|
// Token: 0x04007896 RID: 30870
|
|
[Token(Token = "0x4007896")]
|
|
public static readonly string Aes192Wrap;
|
|
|
|
// Token: 0x04007897 RID: 30871
|
|
[Token(Token = "0x4007897")]
|
|
public static readonly string Aes256Wrap;
|
|
|
|
// Token: 0x04007898 RID: 30872
|
|
[Token(Token = "0x4007898")]
|
|
public static readonly string Camellia128Wrap;
|
|
|
|
// Token: 0x04007899 RID: 30873
|
|
[Token(Token = "0x4007899")]
|
|
public static readonly string Camellia192Wrap;
|
|
|
|
// Token: 0x0400789A RID: 30874
|
|
[Token(Token = "0x400789A")]
|
|
public static readonly string Camellia256Wrap;
|
|
|
|
// Token: 0x0400789B RID: 30875
|
|
[Token(Token = "0x400789B")]
|
|
public static readonly string SeedWrap;
|
|
|
|
// Token: 0x0400789C RID: 30876
|
|
[Token(Token = "0x400789C")]
|
|
public static readonly string ECDHSha1Kdf;
|
|
|
|
// Token: 0x0400789D RID: 30877
|
|
[Token(Token = "0x400789D")]
|
|
public static readonly string ECMqvSha1Kdf;
|
|
|
|
// Token: 0x0400789E RID: 30878
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400789E")]
|
|
internal readonly IList recipientInfoGenerators;
|
|
|
|
// Token: 0x0400789F RID: 30879
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400789F")]
|
|
internal readonly SecureRandom rand;
|
|
|
|
// Token: 0x040078A0 RID: 30880
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40078A0")]
|
|
internal CmsAttributeTableGenerator unprotectedAttributeGenerator;
|
|
}
|
|
}
|