C# Класс Raven.Bundles.Encryption.Codec

Показать файл Открыть проект

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

Свойство Тип Описание
EncryptionSettings Raven.Bundles.Encryption.Settings.EncryptionSettings

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

Метод Описание
Codec ( Raven.Bundles.Encryption.Settings.EncryptionSettings settings ) : System
Decode ( string key, Stream dataStream ) : Stream
DecodeBlock ( string key, EncodedBlock block ) : byte[]
Encode ( string key, Stream dataStream ) : Stream
EncodeBlock ( string key, byte data ) : EncodedBlock

Приватные методы

Метод Описание
GetCryptoProvider ( byte iv ) : SymmetricAlgorithm
GetCryptoProviderWithRandomIV ( byte &iv ) : SymmetricAlgorithm
GetIVLength ( ) : int
GetSaltFromEncryptionKey ( byte key ) : byte[]
GetStartingKeyAndIVForEncryption ( SymmetricAlgorithm algorithm ) : byte[]>.Tuple

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

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

public Codec ( Raven.Bundles.Encryption.Settings.EncryptionSettings settings ) : System
settings Raven.Bundles.Encryption.Settings.EncryptionSettings
Результат System

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

public Decode ( string key, Stream dataStream ) : Stream
key string
dataStream Stream
Результат Stream

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

public DecodeBlock ( string key, EncodedBlock block ) : byte[]
key string
block EncodedBlock
Результат byte[]

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

public Encode ( string key, Stream dataStream ) : Stream
key string
dataStream Stream
Результат Stream

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

public EncodeBlock ( string key, byte data ) : EncodedBlock
key string
data byte
Результат EncodedBlock

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

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

public EncryptionSettings,Raven.Bundles.Encryption.Settings EncryptionSettings
Результат Raven.Bundles.Encryption.Settings.EncryptionSettings