|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.crypto.mode.ModeFactory
A Factory to instantiate block cipher modes of operations.
Field Summary |
Method Summary | |
static IMode |
getInstance(java.lang.String mode,
IBlockCipher cipher,
int cipherBlockSize)
|
static IMode |
getInstance(java.lang.String mode,
java.lang.String cipher,
int cipherBlockSize)
Returns an instance of a block cipher mode of operations given its name and characteristics of the underlying block cipher. |
static java.util.Set |
getNames()
Returns a Set of names of mode supported by this
Factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IMode getInstance(java.lang.String mode, java.lang.String cipher, int cipherBlockSize)
Returns an instance of a block cipher mode of operations given its name and characteristics of the underlying block cipher.
mode
- the case-insensitive name of the mode of operations.cipher
- the case-insensitive name of the block cipher.cipherBlockSize
- the block size, in bytes, of the underlying cipher.
null
if none found.
java.lang.InternalError
- if either the mode or the underlying block cipher
implementation does not pass its self-test.public static IMode getInstance(java.lang.String mode, IBlockCipher cipher, int cipherBlockSize)
public static final java.util.Set getNames()
Returns a Set
of names of mode supported by this
Factory.
Set
of mode names (Strings).
|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |