C# 클래스 GSF.Security.Cryptography.Cipher.KeyIVCache

Represents an inter-process serializable cryptographic key and initialization vector cache.
상속: GSF.IO.InterprocessCache
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

Private Properties

프로퍼티 타입 설명
WaitForDataReady void

공개 메소드들

메소드 설명
ExportKeyIV ( string password, int keySize ) : string

Exports a key and initialization vector from the local system key cache.

This method is used to manually export a key to be installed on another computer.

GetCryptoKeyIV ( string password, int keySize ) : byte[][]

Gets the crypto key and initialization vector for the given user password.

ImportKeyIV ( string password, int keySize, string keyIVText ) : void

Imports a key and initialization vector into the local system key cache.

This method is used to manually import a key created on another computer.

KeyIVExists ( string password, int keySize ) : bool

Determines if a key and initialization vector exists for the given password.

MergeLeft ( KeyIVCache other ) : void

Merge keys and initialization vectors from another KeyIVCache, local cache taking precedence.

MergeRight ( KeyIVCache other ) : void

Merge keys and initialization vectors from another KeyIVCache, other cache taking precedence.

Save ( ) : void

Initiates inter-process synchronized save of key and initialization vector table.

보호된 메소드들

메소드 설명
LoadFileData ( FileStream fileStream ) : byte[]

Handles deserialization of file from disk; virtual method allows customization (e.g., pre-load decryption and/or data merge).

Consumers overriding this method should not directly call InterprocessCache.FileData property to avoid potential dead-locks.

SaveFileData ( FileStream fileStream, byte fileData ) : void

Handles serialization of file to disk; virtual method allows customization (e.g., pre-save encryption and/or data merge).

Consumers overriding this method should not directly call InterprocessCache.FileData property to avoid potential dead-locks.

비공개 메소드들

메소드 설명
WaitForDataReady ( ) : void

메소드 상세

ExportKeyIV() 공개 메소드

Exports a key and initialization vector from the local system key cache.
This method is used to manually export a key to be installed on another computer.
public ExportKeyIV ( string password, int keySize ) : string
password string User password used for key lookup.
keySize int Specifies the desired key size.
리턴 string

GetCryptoKeyIV() 공개 메소드

Gets the crypto key and initialization vector for the given user password.
public GetCryptoKeyIV ( string password, int keySize ) : byte[][]
password string User password used for key lookup.
keySize int Specifies the desired key size.
리턴 byte[][]

ImportKeyIV() 공개 메소드

Imports a key and initialization vector into the local system key cache.
This method is used to manually import a key created on another computer.
public ImportKeyIV ( string password, int keySize, string keyIVText ) : void
password string User password used for key lookups.
keySize int Specifies the desired key size.
keyIVText string Text based key and initialization vector to import into local key cache.
리턴 void

KeyIVExists() 공개 메소드

Determines if a key and initialization vector exists for the given password.
public KeyIVExists ( string password, int keySize ) : bool
password string User password used for key lookups.
keySize int Specifies the desired key size.
리턴 bool

LoadFileData() 보호된 메소드

Handles deserialization of file from disk; virtual method allows customization (e.g., pre-load decryption and/or data merge).
Consumers overriding this method should not directly call InterprocessCache.FileData property to avoid potential dead-locks.
protected LoadFileData ( FileStream fileStream ) : byte[]
fileStream System.IO.FileStream used to deserialize data.
리턴 byte[]

MergeLeft() 공개 메소드

Merge keys and initialization vectors from another KeyIVCache, local cache taking precedence.
public MergeLeft ( KeyIVCache other ) : void
other KeyIVCache Other to merge with.
리턴 void

MergeRight() 공개 메소드

Merge keys and initialization vectors from another KeyIVCache, other cache taking precedence.
public MergeRight ( KeyIVCache other ) : void
other KeyIVCache Other to merge with.
리턴 void

Save() 공개 메소드

Initiates inter-process synchronized save of key and initialization vector table.
public Save ( ) : void
리턴 void

SaveFileData() 보호된 메소드

Handles serialization of file to disk; virtual method allows customization (e.g., pre-save encryption and/or data merge).
Consumers overriding this method should not directly call InterprocessCache.FileData property to avoid potential dead-locks.
protected SaveFileData ( FileStream fileStream, byte fileData ) : void
fileStream System.IO.FileStream used to serialize data.
fileData byte File data to be serialized.
리턴 void