C# Class Goedel.Cryptography.CryptoProviderEncryption

Provider for bulk encryption algorithms (e.g. AES).
Inheritance: CryptoProviderBulk
ファイルを表示 Open project: hallambaker/Mathematical-Mesh Class Usage Examples

Public Properties

Property Type Description
AppendIV bool
AppendIntegrity bool

Public Methods

Method Description
Decrypt ( CryptoData Input, byte Data ) : CryptoData

Start an encryption session with random key and IV.

Encrypt ( CryptoData Input ) : CryptoData

Encrypt the provided cryptoblob

Encrypt ( byte Data ) : CryptoData

Encrypt the provided cryptoblob

Process ( byte InputBuffer, int InputOffset, int Count ) : CryptoData

Processes the specified region of the specified byte array

StartDecrypt ( byte Key ) : void

Start a decryption session with the specified key and implicit IV.

StartDecrypt ( byte Key, byte IV ) : void

Start a decryption session with the specified key and IV.

StartEncrypt ( ) : void

Start an encryption session with random key and IV.

StartEncrypt ( byte Key, byte IV ) : void

Start an encryption session with the specified key and IV.

Protected Methods

Method Description
CryptoProviderEncryption ( SymmetricAlgorithm SymmetricAlgorithm, int KeySize, CipherMode CipherMode ) : System

Constructor for initializing a delegate class.

Method Details

CryptoProviderEncryption() protected method

Constructor for initializing a delegate class.
protected CryptoProviderEncryption ( SymmetricAlgorithm SymmetricAlgorithm, int KeySize, CipherMode CipherMode ) : System
SymmetricAlgorithm System.Security.Cryptography.SymmetricAlgorithm Cryptographic provider.
KeySize int Key size in bits.
CipherMode CipherMode Cipher mode to use
return System

Decrypt() public method

Start an encryption session with random key and IV.
public Decrypt ( CryptoData Input, byte Data ) : CryptoData
Input CryptoData
Data byte
return CryptoData

Encrypt() public method

Encrypt the provided cryptoblob
public Encrypt ( CryptoData Input ) : CryptoData
Input CryptoData
return CryptoData

Encrypt() public method

Encrypt the provided cryptoblob
public Encrypt ( byte Data ) : CryptoData
Data byte
return CryptoData

Process() public method

Processes the specified region of the specified byte array
public Process ( byte InputBuffer, int InputOffset, int Count ) : CryptoData
InputBuffer byte The input to process
InputOffset int The offset into the byte array from which to begin using data.
Count int The number of bytes in the array to use as data.
return CryptoData

StartDecrypt() public method

Start a decryption session with the specified key and implicit IV.
public StartDecrypt ( byte Key ) : void
Key byte
return void

StartDecrypt() public method

Start a decryption session with the specified key and IV.
public StartDecrypt ( byte Key, byte IV ) : void
Key byte
IV byte
return void

StartEncrypt() public method

Start an encryption session with random key and IV.
public StartEncrypt ( ) : void
return void

StartEncrypt() public method

Start an encryption session with the specified key and IV.
public StartEncrypt ( byte Key, byte IV ) : void
Key byte
IV byte
return void

Property Details

AppendIV public_oe property

If set to true, the initialization vector (if used) will be prepended to the output byte stream.
public bool AppendIV
return bool

AppendIntegrity public_oe property

If set to true, the authentication code (if created) will be prepended to the output byte stream. Since we don't currently have a GCM mode, this isn't currently used.
public bool AppendIntegrity
return bool