Package com.trilead.ssh2.crypto.cipher
Class BlockCipherFactory
- java.lang.Object
-
- com.trilead.ssh2.crypto.cipher.BlockCipherFactory
-
public class BlockCipherFactory extends java.lang.ObjectBlockCipherFactory.- 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 classBlockCipherFactory.CipherEntry
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.Vectorciphers
-
Constructor Summary
Constructors Constructor Description BlockCipherFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckCipherList(java.lang.String[] cipherCandidates)static BlockCiphercreateCipher(java.lang.String type, boolean encrypt, byte[] key, byte[] iv)static intgetBlockSize(java.lang.String type)static java.lang.String[]getDefaultCipherList()private static BlockCipherFactory.CipherEntrygetEntry(java.lang.String type)static intgetKeySize(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)
-
-