using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto; using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Generators; using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms { // Token: 0x02001D60 RID: 7520 [Token(Token = "0x2001D60")] public class Pkcs5Scheme2PbeKey : CmsPbeKey { // Token: 0x0600BE74 RID: 48756 RVA: 0x002B6598 File Offset: 0x002B4798 [Token(Token = "0x600BE74")] [Address(RVA = "0x20130A0", Offset = "0x2011EA0", VA = "0x1820130A0")] [Obsolete] public Pkcs5Scheme2PbeKey(string password, byte[] salt, int iterationCount) { char[] array = password.ToCharArray(); base..ctor(array, salt, iterationCount); } // Token: 0x0600BE75 RID: 48757 RVA: 0x002B65BC File Offset: 0x002B47BC [Token(Token = "0x600BE75")] [Address(RVA = "0x1666C30", Offset = "0x1665A30", VA = "0x181666C30")] [Obsolete] public Pkcs5Scheme2PbeKey(string password, AlgorithmIdentifier keyDerivationAlgorithm) { char[] array = password.ToCharArray(); base..ctor(array, keyDerivationAlgorithm); } // Token: 0x0600BE76 RID: 48758 RVA: 0x002B65E0 File Offset: 0x002B47E0 [Token(Token = "0x600BE76")] [Address(RVA = "0x2013100", Offset = "0x2011F00", VA = "0x182013100")] public Pkcs5Scheme2PbeKey(char[] password, byte[] salt, int iterationCount) : base(password, salt, iterationCount) { } // Token: 0x0600BE77 RID: 48759 RVA: 0x002B65F8 File Offset: 0x002B47F8 [Token(Token = "0x600BE77")] [Address(RVA = "0x2013110", Offset = "0x2011F10", VA = "0x182013110")] public Pkcs5Scheme2PbeKey(char[] password, AlgorithmIdentifier keyDerivationAlgorithm) : base(password, keyDerivationAlgorithm) { } // Token: 0x0600BE78 RID: 48760 RVA: 0x002B6610 File Offset: 0x002B4810 [Token(Token = "0x600BE78")] [Address(RVA = "0x2012F50", Offset = "0x2011D50", VA = "0x182012F50", Slot = "4")] internal override KeyParameter GetEncoded(string algorithmOid) { ICipherParameters cipherParameters; do { Pkcs5S2ParametersGenerator pkcs5S2ParametersGenerator = new Pkcs5S2ParametersGenerator(); byte[] array = PbeParametersGenerator.Pkcs5PasswordToBytes(this.password); string text = pkcs5S2ParametersGenerator.ToString(); int keySize = CmsEnvelopedHelper.Instance.GetKeySize(algorithmOid); if (cipherParameters == 0) { } } while (cipherParameters == 0); throw new NullReferenceException(); } } }