C# Class EncryptedType.EncryptedTypeAttribute

Inheritance: InstanceLevelAspect, IEncryptedType
Show file Open project: jkuemerle/EncryptedType

Protected Properties

Property Type Description
_sharedKeyCache KeyInfo>.IDictionary
_sharedKeyCacheLock string
_sharedKeyServer IKeyServer
_sharedKeys string>.IDictionary

Private Properties

Property Type Description
AddHMAC string
ClearText object
ComputeHMAC string
ComputeHMAC string
Decrypt string
Decrypt string
Decrypt string
Encrypt string
Encrypt string
Encrypt string
Encrypt string
GetEncryptedValues string>.IDictionary
GetEncryptionKeys string>.IDictionary
VerifyHMAC bool

Public Methods

Method Description
GetKeyInfo ( string KeyName, byte IV, SymmetricAlgorithm Crypter ) : KeyInfo
RuntimeInitializeInstance ( ) : void

Private Methods

Method Description
AddHMAC ( string Data, Func Integrity ) : string
ClearText ( string PropertyName ) : object
ComputeHMAC ( byte Data, byte Key ) : string
ComputeHMAC ( string Data, Func Integrity ) : string
Decrypt ( byte encrypted, string mac, byte iv, byte key, byte secret, SymmetricAlgorithm crypter ) : string
Decrypt ( string Data, string KeyName, Func IntegrityFunction ) : string
Decrypt ( string Data, string mac, SymmetricMetaData metadata ) : string
Encrypt ( byte val, SymmetricMetaData metadata ) : string
Encrypt ( byte val, byte iv, byte key, byte secret, SymmetricAlgorithm crypter ) : string
Encrypt ( string Data, string KeyName, Func IntegrityFunction ) : string
Encrypt ( string val, string iv, string key, string secret, SymmetricAlgorithm crypter ) : string
GetEncryptedValues ( ) : string>.IDictionary
GetEncryptionKeys ( ) : string>.IDictionary
VerifyHMAC ( string Data, Func Integrity ) : bool

Method Details

GetKeyInfo() public method

public GetKeyInfo ( string KeyName, byte IV, SymmetricAlgorithm Crypter ) : KeyInfo
KeyName string
IV byte
Crypter System.Security.Cryptography.SymmetricAlgorithm
return KeyInfo

RuntimeInitializeInstance() public method

public RuntimeInitializeInstance ( ) : void
return void

Property Details

_sharedKeyCache protected static property

protected static IDictionary _sharedKeyCache
return KeyInfo>.IDictionary

_sharedKeyCacheLock protected static property

protected static string _sharedKeyCacheLock
return string

_sharedKeyServer protected static property

protected static IKeyServer _sharedKeyServer
return IKeyServer

_sharedKeys protected static property

protected static IDictionary _sharedKeys
return string>.IDictionary