C# Class Granados.Crypto.CipherFactory

Creates a cipher from given parameters
Afficher le fichier Open project: poderosaproject/poderosa

Méthodes publiques

Méthode Description
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

Method Details

AlgorithmToSSH2Name() public static méthode

public static AlgorithmToSSH2Name ( CipherAlgorithm algorithm ) : string
algorithm CipherAlgorithm
Résultat string

CreateCipher() public static méthode

public static CreateCipher ( SSHProtocol protocol, CipherAlgorithm algorithm, byte key ) : Cipher
protocol SSHProtocol
algorithm CipherAlgorithm
key byte
Résultat Cipher

CreateCipher() public static méthode

public static CreateCipher ( SSHProtocol protocol, CipherAlgorithm algorithm, byte key, byte iv ) : Cipher
protocol SSHProtocol
algorithm CipherAlgorithm
key byte
iv byte
Résultat Cipher

GetBlockSize() public static méthode

returns the block size from Algorithm in bytes
public static GetBlockSize ( CipherAlgorithm algorithm ) : int
algorithm CipherAlgorithm
Résultat int

GetKeySize() public static méthode

returns necessary key size from Algorithm in bytes
public static GetKeySize ( CipherAlgorithm algorithm ) : int
algorithm CipherAlgorithm
Résultat int

SSH2NameToAlgorithm() public static méthode

public static SSH2NameToAlgorithm ( string name ) : CipherAlgorithm
name string
Résultat CipherAlgorithm