public class SPEEDKeyGenerator extends RawKeyGenerator
SPEED keys have a length of between 48 and 256 bits, in steps of 16 bits (i.e. keys always have an even number of bytes). The default length is 128 bits.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
Constructor and Description |
---|
SPEEDKeyGenerator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValidKeyLength(int length)
Returns true iff length is a valid key length (in bytes)
for this algorithm.
|
engineGenerateKey, generateKey, generateKey, getDefaultKeyLength, getMaximumKeyLength, getMinimumKeyLength, initialize, initialize, isWeak, isWeakAllowed, setWeakAllowed
clone, engineGetParameter, engineSetParameter, getAlgorithm, getAlgorithms, getAlgorithms, getInstance, getInstance, getParameter, setParameter, toString
public boolean isValidKeyLength(int length)
RawKeyGenerator
The default implementation returns true if length is between the minimum and maximum key lengths. Some algorithms will override this method to specify a more restricted set of values.
isValidKeyLength
in interface ExtendedKeyGenerator
isValidKeyLength
in class RawKeyGenerator