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: 0x02001E18 RID: 7704
|
|
[Token(Token = "0x2001E18")]
|
|
public class CmsEnvelopedGenerator
|
|
{
|
|
// Token: 0x0600C11A RID: 49434 RVA: 0x002B9A30 File Offset: 0x002B7C30
|
|
[Token(Token = "0x600C11A")]
|
|
[Address(RVA = "0x2146E70", Offset = "0x2145E70", VA = "0x182146E70")]
|
|
public CmsEnvelopedGenerator()
|
|
{
|
|
SecureRandom secureRandom = new SecureRandom();
|
|
IList list = Platform.CreateArrayList();
|
|
this.recipientInfoGenerators = list;
|
|
base..ctor();
|
|
this.rand = secureRandom;
|
|
}
|
|
|
|
// Token: 0x0600C11B RID: 49435 RVA: 0x002B9A60 File Offset: 0x002B7C60
|
|
[Token(Token = "0x600C11B")]
|
|
[Address(RVA = "0x2146E00", Offset = "0x2145E00", VA = "0x182146E00")]
|
|
public CmsEnvelopedGenerator(SecureRandom rand)
|
|
{
|
|
IList list = Platform.CreateArrayList();
|
|
this.recipientInfoGenerators = list;
|
|
base..ctor();
|
|
this.rand = rand;
|
|
}
|
|
|
|
// Token: 0x17001DF2 RID: 7666
|
|
// (get) Token: 0x0600C11C RID: 49436 RVA: 0x002B9A8C File Offset: 0x002B7C8C
|
|
// (set) Token: 0x0600C11D RID: 49437 RVA: 0x002B9AA0 File Offset: 0x002B7CA0
|
|
[Token(Token = "0x17001DF2")]
|
|
public CmsAttributeTableGenerator UnprotectedAttributeGenerator
|
|
{
|
|
[Token(Token = "0x600C11C")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.unprotectedAttributeGenerator;
|
|
}
|
|
[Token(Token = "0x600C11D")]
|
|
[Address(RVA = "0x415810", Offset = "0x414810", VA = "0x180415810")]
|
|
set
|
|
{
|
|
this.unprotectedAttributeGenerator = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C11E RID: 49438 RVA: 0x002B9AB4 File Offset: 0x002B7CB4
|
|
[Token(Token = "0x600C11E")]
|
|
[Address(RVA = "0x2146420", Offset = "0x2145420", VA = "0x182146420")]
|
|
public void AddKeyTransRecipient(X509Certificate cert)
|
|
{
|
|
new KeyTransRecipientInfoGenerator().RecipientCert = cert;
|
|
IList list = this.recipientInfoGenerators;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C11F RID: 49439 RVA: 0x002B9AD8 File Offset: 0x002B7CD8
|
|
[Token(Token = "0x600C11F")]
|
|
[Address(RVA = "0x2146360", Offset = "0x2145360", VA = "0x182146360")]
|
|
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: 0x0600C120 RID: 49440 RVA: 0x002B9B0C File Offset: 0x002B7D0C
|
|
[Token(Token = "0x600C120")]
|
|
[Address(RVA = "0x2145DD0", Offset = "0x2144DD0", VA = "0x182145DD0")]
|
|
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: 0x0600C121 RID: 49441 RVA: 0x002B9B54 File Offset: 0x002B7D54
|
|
[Token(Token = "0x600C121")]
|
|
[Address(RVA = "0x2145ED0", Offset = "0x2144ED0", VA = "0x182145ED0")]
|
|
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: 0x0600C122 RID: 49442 RVA: 0x002B9B88 File Offset: 0x002B7D88
|
|
[Token(Token = "0x600C122")]
|
|
[Address(RVA = "0x21464B0", Offset = "0x21454B0", VA = "0x1821464B0")]
|
|
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: 0x0600C123 RID: 49443 RVA: 0x002B9BF0 File Offset: 0x002B7DF0
|
|
[Token(Token = "0x600C123")]
|
|
[Address(RVA = "0x2145F90", Offset = "0x2144F90", VA = "0x182145F90")]
|
|
public void AddKeyAgreementRecipient(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, X509Certificate recipientCert, string cekWrapAlgorithm)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C123)
|
|
|
|
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: 0x0600C124 RID: 49444 RVA: 0x002B9C68 File Offset: 0x002B7E68
|
|
[Token(Token = "0x600C124")]
|
|
[Address(RVA = "0x21461B0", Offset = "0x21451B0", VA = "0x1821461B0")]
|
|
public void AddKeyAgreementRecipients(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, ICollection recipientCerts, string cekWrapAlgorithm)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C124)
|
|
|
|
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: 0x0600C125 RID: 49445 RVA: 0x002B9CD0 File Offset: 0x002B7ED0
|
|
[Token(Token = "0x600C125")]
|
|
[Address(RVA = "0x2146810", Offset = "0x2145810", VA = "0x182146810", 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: 0x0600C126 RID: 49446 RVA: 0x002B9D00 File Offset: 0x002B7F00
|
|
[Token(Token = "0x600C126")]
|
|
[Address(RVA = "0x2146640", Offset = "0x2145640", VA = "0x182146640", 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: 0x0600C127 RID: 49447 RVA: 0x002B9D80 File Offset: 0x002B7F80
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600C127")]
|
|
[Address(RVA = "0x2146930", Offset = "0x2145930", VA = "0x182146930")]
|
|
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: 0x04007A41 RID: 31297
|
|
[Token(Token = "0x4007A41")]
|
|
internal static readonly short[] rc2Table;
|
|
|
|
// Token: 0x04007A42 RID: 31298
|
|
[Token(Token = "0x4007A42")]
|
|
public static readonly string DesEde3Cbc;
|
|
|
|
// Token: 0x04007A43 RID: 31299
|
|
[Token(Token = "0x4007A43")]
|
|
public static readonly string RC2Cbc;
|
|
|
|
// Token: 0x04007A44 RID: 31300
|
|
[Token(Token = "0x4007A44")]
|
|
public const string IdeaCbc = "1.3.6.1.4.1.188.7.1.1.2";
|
|
|
|
// Token: 0x04007A45 RID: 31301
|
|
[Token(Token = "0x4007A45")]
|
|
public const string Cast5Cbc = "1.2.840.113533.7.66.10";
|
|
|
|
// Token: 0x04007A46 RID: 31302
|
|
[Token(Token = "0x4007A46")]
|
|
public static readonly string Aes128Cbc;
|
|
|
|
// Token: 0x04007A47 RID: 31303
|
|
[Token(Token = "0x4007A47")]
|
|
public static readonly string Aes192Cbc;
|
|
|
|
// Token: 0x04007A48 RID: 31304
|
|
[Token(Token = "0x4007A48")]
|
|
public static readonly string Aes256Cbc;
|
|
|
|
// Token: 0x04007A49 RID: 31305
|
|
[Token(Token = "0x4007A49")]
|
|
public static readonly string Camellia128Cbc;
|
|
|
|
// Token: 0x04007A4A RID: 31306
|
|
[Token(Token = "0x4007A4A")]
|
|
public static readonly string Camellia192Cbc;
|
|
|
|
// Token: 0x04007A4B RID: 31307
|
|
[Token(Token = "0x4007A4B")]
|
|
public static readonly string Camellia256Cbc;
|
|
|
|
// Token: 0x04007A4C RID: 31308
|
|
[Token(Token = "0x4007A4C")]
|
|
public static readonly string SeedCbc;
|
|
|
|
// Token: 0x04007A4D RID: 31309
|
|
[Token(Token = "0x4007A4D")]
|
|
public static readonly string DesEde3Wrap;
|
|
|
|
// Token: 0x04007A4E RID: 31310
|
|
[Token(Token = "0x4007A4E")]
|
|
public static readonly string Aes128Wrap;
|
|
|
|
// Token: 0x04007A4F RID: 31311
|
|
[Token(Token = "0x4007A4F")]
|
|
public static readonly string Aes192Wrap;
|
|
|
|
// Token: 0x04007A50 RID: 31312
|
|
[Token(Token = "0x4007A50")]
|
|
public static readonly string Aes256Wrap;
|
|
|
|
// Token: 0x04007A51 RID: 31313
|
|
[Token(Token = "0x4007A51")]
|
|
public static readonly string Camellia128Wrap;
|
|
|
|
// Token: 0x04007A52 RID: 31314
|
|
[Token(Token = "0x4007A52")]
|
|
public static readonly string Camellia192Wrap;
|
|
|
|
// Token: 0x04007A53 RID: 31315
|
|
[Token(Token = "0x4007A53")]
|
|
public static readonly string Camellia256Wrap;
|
|
|
|
// Token: 0x04007A54 RID: 31316
|
|
[Token(Token = "0x4007A54")]
|
|
public static readonly string SeedWrap;
|
|
|
|
// Token: 0x04007A55 RID: 31317
|
|
[Token(Token = "0x4007A55")]
|
|
public static readonly string ECDHSha1Kdf;
|
|
|
|
// Token: 0x04007A56 RID: 31318
|
|
[Token(Token = "0x4007A56")]
|
|
public static readonly string ECMqvSha1Kdf;
|
|
|
|
// Token: 0x04007A57 RID: 31319
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007A57")]
|
|
internal readonly IList recipientInfoGenerators;
|
|
|
|
// Token: 0x04007A58 RID: 31320
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007A58")]
|
|
internal readonly SecureRandom rand;
|
|
|
|
// Token: 0x04007A59 RID: 31321
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007A59")]
|
|
internal CmsAttributeTableGenerator unprotectedAttributeGenerator;
|
|
}
|
|
}
|