ch.ethz.ssh2.crypto.cipher
Class BlockCipherFactory

java.lang.Object
  extended by ch.ethz.ssh2.crypto.cipher.BlockCipherFactory

public class BlockCipherFactory
extends java.lang.Object

BlockCipherFactory.

Version:
2.50, 03/15/10
Author:
Christian Plattner

Nested Class Summary
(package private) static class BlockCipherFactory.CipherEntry
           
 
Field Summary
(package private) static java.util.Vector ciphers
           
 
Constructor Summary
BlockCipherFactory()
           
 
Method Summary
static void checkCipherList(java.lang.String[] cipherCandidates)
           
static BlockCipher createCipher(java.lang.String type, boolean encrypt, byte[] key, byte[] iv)
           
static int getBlockSize(java.lang.String type)
           
static java.lang.String[] getDefaultCipherList()
           
private static BlockCipherFactory.CipherEntry getEntry(java.lang.String type)
           
static int getKeySize(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ciphers

static java.util.Vector ciphers
Constructor Detail

BlockCipherFactory

public BlockCipherFactory()
Method Detail

getDefaultCipherList

public static java.lang.String[] getDefaultCipherList()

checkCipherList

public static void checkCipherList(java.lang.String[] cipherCandidates)

createCipher

public static BlockCipher createCipher(java.lang.String type,
                                       boolean encrypt,
                                       byte[] key,
                                       byte[] iv)

getEntry

private static BlockCipherFactory.CipherEntry getEntry(java.lang.String type)

getBlockSize

public static int getBlockSize(java.lang.String type)

getKeySize

public static int getKeySize(java.lang.String type)