48 references to MachineKeySection
System.Web (48)
Configuration\MachineKeySection.cs (6)
71private static MachineKeySection s_config; 294MachineKeySection parent = parentElement as MachineKeySection; 754MachineKeySection.DestroyByteArray(_ValidationKey); 755MachineKeySection.DestroyByteArray(_DecryptionKey); 775internal static MachineKeySection GetApplicationConfig() {
Configuration\MachineKeyValidationConverter.cs (1)
62return MachineKeySection.DefaultValidation;
Configuration\RuntimeConfig.cs (3)
348internal MachineKeySection MachineKey { 350return (MachineKeySection) GetSection("system.web/machineKey", typeof(MachineKeySection), ResultsIndex.MachineKey);
Configuration\SystemWebSectionGroup.cs (2)
144public MachineKeySection MachineKey { 146return (MachineKeySection) Sections["machineKey"];
Security\CookieProtection.cs (4)
35byte[] bMac = MachineKeySection.HashData (buf, null, 0, count); 55buf = MachineKeySection.EncryptOrDecryptData (true, buf, null, 0, count); 84buf = MachineKeySection.EncryptOrDecryptData (false, buf, null, 0, buf.Length); 90return MachineKeySection.GetUnHashedData(buf);
Security\Cryptography\AspNetCryptoServiceProvider.cs (4)
22private readonly MachineKeySection _machineKeySection; 27internal AspNetCryptoServiceProvider(MachineKeySection machineKeySection = null, ICryptoAlgorithmFactory cryptoAlgorithmFactory = null, IMasterKeyProvider masterKeyProvider = null, IDataProtectorFactory dataProtectorFactory = null, KeyDerivationFunction keyDerivationFunction = null) { 88MachineKeySection machineKeySection = MachineKeySection.GetApplicationConfig();
Security\Cryptography\MachineKeyCryptoAlgorithmFactory.cs (2)
17private readonly MachineKeySection _machineKeySection; 20public MachineKeyCryptoAlgorithmFactory(MachineKeySection machineKeySection) {
Security\Cryptography\MachineKeyDataProtectorFactory.cs (2)
19private readonly MachineKeySection _machineKeySection; 21public MachineKeyDataProtectorFactory(MachineKeySection machineKeySection) {
Security\Cryptography\MachineKeyMasterKeyProvider.cs (2)
32private readonly MachineKeySection _machineKeySection; 36internal MachineKeyMasterKeyProvider(MachineKeySection machineKeySection, string applicationId = null, string applicationName = null, CryptographicKey autogenKeys = null, KeyDerivationFunction keyDerivationFunction = null) {
Security\FormsAuthentication.cs (6)
167bBlob = MachineKeySection.EncryptOrDecryptData(false, bBlob, null, 0, bBlob.Length, false, false, IVType.Random); 176if (!MachineKeySection.VerifyHashedData(bBlob)) 178ticketLength -= MachineKeySection.HashSize; 267byte[] bMac = MachineKeySection.HashData(bBlob, null, 0, bBlob.Length); 281bBlob = MachineKeySection.EncryptOrDecryptData(true, bBlob, null, 0, bBlob.Length, false, false, IVType.Random); 833bool legacyPadding = !willEncrypt || (MachineKeySection.CompatMode == MachineKeyCompatibilityMode.Framework20SP1);
Security\MachineKey.cs (7)
41byte[] bHash = MachineKeySection.HashData(data, null, 0, data.Length); 51data = MachineKeySection.EncryptOrDecryptData(true, data, null, 0, data.Length, false, false, IVType.Random, !AppSettings.UseLegacyMachineKeyEncryption); 85data = MachineKeySection.EncryptOrDecryptData(false, data, null, 0, data.Length, false, false, IVType.Random, !AppSettings.UseLegacyMachineKeyEncryption); 93if (data.Length < MachineKeySection.HashSize) 96data = new byte[originalData.Length - MachineKeySection.HashSize]; 101byte[] bHash = MachineKeySection.HashData(data, null, 0, data.Length); 102if (bHash == null || bHash.Length != MachineKeySection.HashSize)
Security\MembershipAdapter.cs (3)
28get { return MachineKeySection.IsDecryptionKeyAutogenerated; } 32get { return MachineKeySection.UsingCustomEncryption; } 44return MachineKeySection.EncryptOrDecryptData(encrypt, buffer, (byte[])null, 0, buffer.Length, false /* useValidationSymAlgo */, useLegacyMode, IVType.None, false /*Sign*/);
UI\ObjectStateFormatter.cs (4)
390inputBytes = MachineKeySection.EncryptOrDecryptData(false, inputBytes, GetMacKeyModifier(), 0, length); 395inputBytes = MachineKeySection.GetDecodedData(inputBytes, GetMacKeyModifier(), 0, length, ref length); 795buffer = MachineKeySection.EncryptOrDecryptData(true, buffer, GetMacKeyModifier(), 0, length); 800buffer = MachineKeySection.GetEncodedData(buffer, GetMacKeyModifier(), 0, ref length);
UI\Page.cs (2)
1856clearData = MachineKeySection.EncryptOrDecryptData(fEncrypt: false, buf: protectedData, modifier: null, start: 0, length: protectedData.Length, useValidationSymAlgo: false, useLegacyMode: false, ivType: IVType.Hash); 2021protectedData = MachineKeySection.EncryptOrDecryptData(fEncrypt: true, buf: clearData, modifier: null, start: 0, length: clearData.Length, useValidationSymAlgo: false, useLegacyMode: false, ivType: IVType.Hash);