public class IDEAKeyGenerator extends RawKeyGenerator
IDEA keys have a fixed length of 128 bits.
References:
$Revision: 1.1.1.1 $
Constructor and Description |
---|
IDEAKeyGenerator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isWeak(byte[] key)
Returns true iff the byte array key represents a
weak IDEA key.
|
engineGenerateKey, generateKey, generateKey, getDefaultKeyLength, getMaximumKeyLength, getMinimumKeyLength, initialize, initialize, isValidKeyLength, isWeakAllowed, setWeakAllowed
clone, engineGetParameter, engineSetParameter, getAlgorithm, getAlgorithms, getAlgorithms, getInstance, getInstance, getParameter, setParameter, toString
public boolean isWeak(byte[] key)
IDEA has two non-overlapping classes of weak keys (bit numbering is from left to right, e.g. 0 denotes the most significant bit of the first byte):
isWeak
in class RawKeyGenerator
key
- the byte array containing user key data.