C# Класс Granados.Crypto.CipherFactory

Creates a cipher from given parameters
Показать файл Открыть проект

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

Метод Описание
AlgorithmToSSH2Name ( CipherAlgorithm algorithm ) : string
CreateCipher ( SSHProtocol protocol, CipherAlgorithm algorithm, byte key ) : Cipher
CreateCipher ( SSHProtocol protocol, CipherAlgorithm algorithm, byte key, byte iv ) : Cipher
GetBlockSize ( CipherAlgorithm algorithm ) : int

returns the block size from Algorithm in bytes

GetKeySize ( CipherAlgorithm algorithm ) : int

returns necessary key size from Algorithm in bytes

SSH2NameToAlgorithm ( string name ) : CipherAlgorithm

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

AlgorithmToSSH2Name() публичный статический Метод

public static AlgorithmToSSH2Name ( CipherAlgorithm algorithm ) : string
algorithm CipherAlgorithm
Результат string

CreateCipher() публичный статический Метод

public static CreateCipher ( SSHProtocol protocol, CipherAlgorithm algorithm, byte key ) : Cipher
protocol SSHProtocol
algorithm CipherAlgorithm
key byte
Результат Cipher

CreateCipher() публичный статический Метод

public static CreateCipher ( SSHProtocol protocol, CipherAlgorithm algorithm, byte key, byte iv ) : Cipher
protocol SSHProtocol
algorithm CipherAlgorithm
key byte
iv byte
Результат Cipher

GetBlockSize() публичный статический Метод

returns the block size from Algorithm in bytes
public static GetBlockSize ( CipherAlgorithm algorithm ) : int
algorithm CipherAlgorithm
Результат int

GetKeySize() публичный статический Метод

returns necessary key size from Algorithm in bytes
public static GetKeySize ( CipherAlgorithm algorithm ) : int
algorithm CipherAlgorithm
Результат int

SSH2NameToAlgorithm() публичный статический Метод

public static SSH2NameToAlgorithm ( string name ) : CipherAlgorithm
name string
Результат CipherAlgorithm