C# 클래스 Granados.Crypto.CipherFactory

Creates a cipher from given parameters
파일 보기 프로젝트 열기: poderosaproject/poderosa

공개 메소드들

메소드 설명
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