C# Класс Goedel.Cryptography.CryptoProviderEncryption

Provider for bulk encryption algorithms (e.g. AES).
Наследование: CryptoProviderBulk
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AppendIV bool
AppendIntegrity bool

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
CryptoProviderEncryption ( SymmetricAlgorithm SymmetricAlgorithm, int KeySize, CipherMode CipherMode ) : System

Constructor for initializing a delegate class.

Описание методов

CryptoProviderEncryption() защищенный Метод

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
Результат System

Decrypt() публичный Метод

Start an encryption session with random key and IV.
public Decrypt ( CryptoData Input, byte Data ) : CryptoData
Input CryptoData
Data byte
Результат CryptoData

Encrypt() публичный Метод

Encrypt the provided cryptoblob
public Encrypt ( CryptoData Input ) : CryptoData
Input CryptoData
Результат CryptoData

Encrypt() публичный Метод

Encrypt the provided cryptoblob
public Encrypt ( byte Data ) : CryptoData
Data byte
Результат CryptoData

Process() публичный Метод

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.
Результат CryptoData

StartDecrypt() публичный Метод

Start a decryption session with the specified key and implicit IV.
public StartDecrypt ( byte Key ) : void
Key byte
Результат void

StartDecrypt() публичный Метод

Start a decryption session with the specified key and IV.
public StartDecrypt ( byte Key, byte IV ) : void
Key byte
IV byte
Результат void

StartEncrypt() публичный Метод

Start an encryption session with random key and IV.
public StartEncrypt ( ) : void
Результат void

StartEncrypt() публичный Метод

Start an encryption session with the specified key and IV.
public StartEncrypt ( byte Key, byte IV ) : void
Key byte
IV byte
Результат void

Описание свойств

AppendIV публичное свойство

If set to true, the initialization vector (if used) will be prepended to the output byte stream.
public bool AppendIV
Результат bool

AppendIntegrity публичное свойство

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
Результат bool