|
For the latest news and information visit The GNU Crypto project |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gnu.crypto.mode.ModeFactory
A Factory to instantiate block cipher modes of operations.
Fields inherited from interface gnu.crypto.Registry |
AES_CIPHER, ANUBIS_CIPHER, CTR_MODE, DSA_KPG, DSA_SIG, DSS_KPG, DSS_SIG, ECB_MODE, GNU_CRYPTO, HMAC_NAME_PREFIX, ICM_MODE, ICM_PRNG, KHAZAD_CIPHER, MD_PRNG, MD4_HASH, MD5_HASH, NULL_CIPHER, OFB_MODE, PKCS7_PAD, RIJNDAEL_CIPHER, RIPEMD_128_HASH, RIPEMD_160_HASH, RIPEMD128_HASH, RIPEMD160_HASH, RSA_KPG, RSA_PSS_SIG, SERPENT_CIPHER, SHA_1_HASH, SHA_HASH, SHA1_HASH, SHA160_HASH, SQUARE_CIPHER, TBC_PAD, TMMH16, TWOFISH_CIPHER, UHASH32, UMAC_PRNG, UMAC32, WHIRLPOOL_HASH |
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 |
|
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.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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |