ch.ethz.ssh2.crypto.cipher

Class BlockCipherFactory


public class BlockCipherFactory
extends java.lang.Object

BlockCipherFactory.

Method Summary

static void
checkCipherList(String[] cipherCandidates)
static BlockCipher
createCipher(String type, boolean encrypt, byte[] key, byte[] iv)
static int
getBlockSize(String type)
static String[]
getDefaultCipherList()
static int
getKeySize(String type)

Method Details

checkCipherList

public static void checkCipherList(String[] cipherCandidates)

createCipher

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

getBlockSize

public static int getBlockSize(String type)

getDefaultCipherList

public static String[] getDefaultCipherList()

getKeySize

public static int getKeySize(String type)