gnu.crypto.cipher
public class CipherFactory extends Object implements Registry
A Factory to instantiate symmetric block cipher instances.
Version: $Revision: 1.12 $
Method Summary | |
---|---|
static IBlockCipher | getInstance(String name) Returns an instance of a block cipher given its name. |
static Set | getNames() Returns a Set of symmetric key block cipher implementation names supported by this Factory. |
Returns an instance of a block cipher given its name.
Parameters: name the case-insensitive name of the symmetric-key block cipher algorithm.
Returns: an instance of the designated cipher algorithm, or
null
if none is found.
Throws: InternalError if the implementation does not pass its self-test.
Returns a Set of symmetric key block cipher implementation names supported by this Factory.
Returns: a Set of block cipher names (Strings).