Package com.trilead.ssh2.crypto.cipher
Class BlockCipherFactory
- java.lang.Object
-
- com.trilead.ssh2.crypto.cipher.BlockCipherFactory
-
public class BlockCipherFactory extends java.lang.Object
BlockCipherFactory.- Version:
- $Id: BlockCipherFactory.java,v 1.2 2008/04/01 12:38:09 cplattne Exp $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
BlockCipherFactory.CipherEntry
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.Vector
ciphers
-
Constructor Summary
Constructors Constructor Description BlockCipherFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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)
-
-