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