4 instantiations of CryptographicKey
System.Web (4)
Security\Cryptography\CryptographicKey.cs (1)
42
return new
CryptographicKey
(newKey);
Security\Cryptography\MachineKeyMasterKeyProvider.cs (2)
65
_autogenKeys = new
CryptographicKey
(HttpRuntime.s_autogenKeys);
92
return new
CryptographicKey
(keyMaterial);
Security\Cryptography\SP800_108.cs (1)
60
return new
CryptographicKey
(derivedKey);
32 references to CryptographicKey
System.Web (32)
Security\Cryptography\AspNetCryptoServiceProvider.cs (2)
76
CryptographicKey
encryptionKey = purpose.GetDerivedEncryptionKey(_masterKeyProvider, _keyDerivationFunction);
77
CryptographicKey
validationKey = purpose.GetDerivedValidationKey(_masterKeyProvider, _keyDerivationFunction);
Security\Cryptography\CryptographicKey.cs (1)
33
public
CryptographicKey
ExtractBits(int offset, int count) {
Security\Cryptography\IMasterKeyProvider.cs (2)
15
CryptographicKey
GetEncryptionKey();
18
CryptographicKey
GetValidationKey();
Security\Cryptography\KeyDerivationFunction.cs (2)
13
internal delegate
CryptographicKey
KeyDerivationFunction(
CryptographicKey
keyDerivationKey, Purpose purpose);
Security\Cryptography\MachineKeyMasterKeyProvider.cs (9)
29
private
CryptographicKey
_autogenKeys;
30
private
CryptographicKey
_encryptionKey;
33
private
CryptographicKey
_validationKey;
36
internal MachineKeyMasterKeyProvider(MachineKeySection machineKeySection, string applicationId = null, string applicationName = null,
CryptographicKey
autogenKeys = null, KeyDerivationFunction keyDerivationFunction = null) {
62
internal
CryptographicKey
AutogenKeys {
87
private
CryptographicKey
GenerateCryptographicKey(string configAttributeName, string configAttributeValue, int autogenKeyOffset, int autogenKeyCount, string errorResourceString) {
131
CryptographicKey
keyDerivationKey = AutogenKeys.ExtractBits(autogenKeyOffset, autogenKeyCount);
149
public
CryptographicKey
GetEncryptionKey() {
161
public
CryptographicKey
GetValidationKey() {
Security\Cryptography\NetFXCryptoService.cs (4)
38
private readonly
CryptographicKey
_encryptionKey;
40
private readonly
CryptographicKey
_validationKey;
42
public NetFXCryptoService(ICryptoAlgorithmFactory cryptoAlgorithmFactory,
CryptographicKey
encryptionKey,
CryptographicKey
validationKey, bool predictableIV = false) {
Security\Cryptography\Purpose.cs (10)
63
internal Purpose(string primaryPurpose, string[] specificPurposes,
CryptographicKey
derivedEncryptionKey,
CryptographicKey
derivedValidationKey) {
72
internal
CryptographicKey
DerivedEncryptionKey { get; private set; }
73
internal
CryptographicKey
DerivedValidationKey { get; private set; }
108
public
CryptographicKey
GetDerivedEncryptionKey(IMasterKeyProvider masterKeyProvider, KeyDerivationFunction keyDerivationFunction) {
110
CryptographicKey
actualDerivedKey = DerivedEncryptionKey;
112
CryptographicKey
masterKey = masterKeyProvider.GetEncryptionKey();
124
public
CryptographicKey
GetDerivedValidationKey(IMasterKeyProvider masterKeyProvider, KeyDerivationFunction keyDerivationFunction) {
126
CryptographicKey
actualDerivedKey = DerivedValidationKey;
128
CryptographicKey
masterKey = masterKeyProvider.GetValidationKey();
Security\Cryptography\SP800_108.cs (2)
41
public static
CryptographicKey
DeriveKey(
CryptographicKey
keyDerivationKey, Purpose purpose) {